Exception Handling in python

In this post,you will learn error and exception handling in python.You will see how we can handle exceptions in python using try and except block and use of finally keyword. Exception Handling Exception handling is a way of writing code in such a way that,exceptions that can occur at runtime… Continue reading

3 Books to Master Python in 2020

Python is the most popular programming language in today’s world.Be it Machine Learning,AI,Data Science,Web Development,in every field python is most popular than any other language. If you search for best books to learn python,you will see many websites that will show you many books.But,do you really think,they have gone through… Continue reading

Python Comments: Single and Multi-line

In this post you will learn about comments in python and how to write single-line and multi-line comments in python. What are comments? Comments are texts that are ignored by the python interpreter and never going to execute.They are written so that programmers can understand what a particular line or… Continue reading

Deep dive in Python Decorators

In this post you will learn about python decorators,decorators with arguments and decorator chaining.So lets jump in… What is python decorators? Decorators are a way in which we can alter or change behavior of a function.As python treats everything as an object,so we can pass function to the functions and… Continue reading

While Loop–Python

While loop is one of the type of loop in python.In this tutorial,you will learn about while loop syntax,when to use it and how to use it in our programs in different ways.You will also learn about break and continue statement and how to use it with while loop. When… Continue reading

Python Dictionaries

Dictionaries are one of the most important data-structures of python.You can think dictionaries as a hash map.Data is stored in dictionaries as a key value pair.In this post,you will learn about python dictionaries,different ways of creating python dictionaries,various methods of dictionaries and different ways of accessing dictionary elements. Creating Dictionary… Continue reading

Learn Python Sets with Examples

Python provides many data structures,but many of us know only about Lists,Tuples and Dictionaries.But,there are many other data structures provides by python which can make our job easy.Python Set is one of them.In this tutorial,you will be learning about python set and its various methods like intersection,difference,symmetric_difference and many more… Continue reading

Python for loop-Explained with Examples

Good programmers never repeat their code.Repeating and Rewriting same code again and again is bad programming habit.programmers should reuse their code in order to optimize the performance of the code,and loops can be used to implement re-usability in our code.Python provides loops like while loop,for loop and do-while loop,In this… Continue reading

Different ways of Generating Random numbers -Full guide

Sometimes,for testing purpose or for some other reasons we need to generate random numbers and data.In these post I am going to show you how can you generate random numbers using python native random module and python external libraries like Numpy. Generating random numbers with random module 1. Generating numbers… Continue reading

Mastering the Regular Expression (RE) in python

Regular Expression or RE are a great way to search pattern in a large text files and then performing various operations like substitutions and deletion.In this post,you will learn about python’s re module and its various functions like compile,findall,match,search and some advance topics like meta-characters,quantifiers,groups and pattern matching. re.compile() re.compile… Continue reading