Exception handling with try, except, else and finally in Python
During the execution of the program an exception might occur which is also known as run time error. Python generates
What Are *args and **kwargs in Python?
The generally associated operator with multiplication is splat operator, but in Python it doubles as the splat operator.A simple example
Python | Enum
Enumerations are executed by using the module named “enum“in Python.By using classes enumerations are created . Enums have names and values related with
Python |Understanding Slice Notation On List
First, we will have a grasp of indexing for sequential types and then discuss slice notation.Let’s take a simple example:>>>
Python Selecting Random Item from A List
In this article you will learn about a function named choice()which is used to select random item from a listother
Python -Yield Keyword
When we write a function, we normally use the return statement for returning the result from a function.The yield keyword
Python-What is __pycache__?
What do we do with the __pycache__ folder? What we share to people is _pycache_ folder or instead of our source code?
Ways to copy a dictionary and edit the copy in Python
Python do not implicitly copy the dictionary or any objects. When we set dict2 = dict1, it refers to the same
Python Convert String to bytes
This article will guide you on how to convert string to bytes in python. Example 1: String ‘abc’ is converted to bytes
Python Convert bytes to String
This article will guide you on how to convert bytes to string Example 1: s = b'abc' print(type(s))# bytes to string using decode() s