range() vs xrange() in Python, Which one is best ?

In this tutorial, you will know about range() vs xrange() in python. First understand basic definition…

How to concatenate two lists in Python?

In this tutorial, you will learn how to concatenate two lists in Python? #program example Output:…

How do I check if a list is empty?

In this article, you will how do I check if a list is empty? #example program…

Python list: How can I replace certain items of the list?

In this tutorial, you will learn how to replace certain items of the list? Output: [crayon-5c71d6e5cbf96043056159/] If…

Top 20 python libraries for machine learning and deep learning

In this article, you will learn about Top 20 python libraries for machine learning and data science.…

2 ways to sort a dictionary in python by values or keys

In this tutorial, You will learn how to sort a dictionary in python by values or…

Python Tutorial for Beginners to Expert in 30 Days

What is Python: Python is an interpreted, object-oriented, high-level programming language. It was created by Guido…

Does Ternary Operator available in Python

Yes, Ternary Operators are conditional operator, it evaluate condition, if it’s true it return one value…

How to Merge Dictionaries in Python with Keys and Values

In this tutorial, you will learn about How to merge dictionaries in python with keys and…

Python program to count number of occurrences of each word in string

In this tutorial, you will learn how to write a python program to count number of…