We are committed to provide service 24 X 7

Deals, Shopping, Training, Tools

Tag: Ways]

Python : Different ways to Iterate over a List in Reverse Order

In this article we will discuss different ways to Iterate over a python list in reverse order. Suppose we have a python list of strings i.e. Advertisements # List of string wordList = [‘hi’, ‘hello’, ‘this’, ‘that’, ‘is’, ‘of’] Now we want to iterate over this list in reverse order( from end to start ) …

Python : Different ways to Iterate over a List in Reverse OrderRead More

Python : 6 Different ways to create Dictionaries

In this article, we will discuss different ways to create dictionary objects in python. What is a dictionary? dictionary is an associative container that contains the items in key/value pairs.  For example, we if want to track the words and their frequency count in an article like, Advertisements “Hello” occurs 7 times “hi” occurs 10 times …

Python : 6 Different ways to create DictionariesRead More

Check if type of a variable is string in Python (3 Ways)

In this article we will discuss three different ways to check if the type of a variable is string or not in python. Check if type of a variable is string in python using isinstance() function Python provides a function to check the type of a variable i.e. Advertisements isinstance(object, classinfo) This function returns True …

Check if type of a variable is string in Python (3 Ways)Read More

Cart

Your Cart is Empty

Back To Shop