---
title: "Vivek Yadav (@vivek166) | Hashnode"
description: "Web Developer. Read the latest articles by Vivek Yadav on Hashnode."
url: "https://hashnode.com/@vivek166"
---

@vivek166

# Vivek Yadav

@vivek166 · Noida, India · Joined November 2022

Web Developer

### [Day 34 - Enumerate function in Python](https://viveky.hashnode.dev/day-34-enumerate-function-in-python?utm_source=hashnode&utm_medium=feed)

The enumerate function is a built-in function in Python that allows you to loop over a sequence (such as a list, tuple, or string) and get the index and value of each element in the sequence at the same time. Here's a basic example of how it works: #...

2 min read · [viveky.hashnode.dev](https://viveky.hashnode.dev/day-34-enumerate-function-in-python?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/day-34-enumerate-function-in-python/64c001aa7488a51d9b2a4425) [Jul 25, 2023](https://hashnode.com/posts/day-34-enumerate-function-in-python/64c001aa7488a51d9b2a4425)

### [Day 33 - Short Hand if else](https://viveky.hashnode.dev/day-33-short-hand-if-else?utm_source=hashnode&utm_medium=feed)

If ... Else in One Line There is also a shorthand syntax for the if-else statement that can be used when the condition being tested is simple and the code blocks to be executed are short. Here's an example: a = 2 b = 330 print("A") if a > b else prin...

1 min read · [viveky.hashnode.dev](https://viveky.hashnode.dev/day-33-short-hand-if-else?utm_source=hashnode&utm_medium=feed)

[Apr 23, 2023](https://hashnode.com/posts/day-33-short-hand-if-else/6444c00cd8065a2a68c22745)

### [Day 32 - Custom Errors](https://viveky.hashnode.dev/day-32-custom-errors?utm_source=hashnode&utm_medium=feed)

Raising Custom errors In Python, we can raise custom errors by using the raise keyword. salary = int(input("Enter salary amount: ")) if not 2000 < salary < 5000: raise ValueError("Not a valid salary") In the previous tutorial, we learned about d...

1 min read · [viveky.hashnode.dev](https://viveky.hashnode.dev/day-32-custom-errors?utm_source=hashnode&utm_medium=feed)

[Apr 2, 2023](https://hashnode.com/posts/day-32-custom-errors/6429024f8366c602d9dfdad4)

### [Day 31 - Finally keyword](https://viveky.hashnode.dev/day-31-finally-keyword?utm_source=hashnode&utm_medium=feed)

Finally Clause The finally code block is also a part of exception handling. When we handle exception using the try and except block, we can include a finally block at the end. The finally block is always executed, so it is generally used for doing th...

1 min read · [viveky.hashnode.dev](https://viveky.hashnode.dev/day-31-finally-keyword?utm_source=hashnode&utm_medium=feed)

[Mar 30, 2023](https://hashnode.com/posts/day-31-finally-keyword/642510f01a917929757766ba)

### [Day 30 - Exception Handling](https://viveky.hashnode.dev/day-30-exception-handling?utm_source=hashnode&utm_medium=feed)

Exception Handling Exception handling is the process of responding to unwanted or unexpected events when a computer program runs. Exception handling deals with these events to avoid the program or system crashing, and without this process, exceptions...

1 min read · [viveky.hashnode.dev](https://viveky.hashnode.dev/day-30-exception-handling?utm_source=hashnode&utm_medium=feed)

[Mar 28, 2023](https://hashnode.com/posts/day-30-exception-handling/64227e5b6868810397817a27)
