Category Python

Python Lists: Everything You Need to Know

Python lists are one of the most fundamental data structures in Python. In this blog post, we will discuss everything you need to know about them! We will cover how to create lists, add and remove items from them, and…

4 Ways to Create a List in Python

Python is a versatile language that you can use for a variety of purposes. One of the things that Python is great for is creating lists. In this blog post, we will discuss 4 simple ways to create a list…

10 Ways to Sort List in Python

Lists are Python’s most flexible ordered collection object type. Unlike strings, lists can contain any sort of object: numbers, strings, and even other lists.  Lists may be changed in place by assignment to offsets and slices, list method calls, deletion…

Understanding Python List Insert method

The Python list insert() is an inbuilt method that inserts an element to the list at the specified index.  All the elements after this element will be shifted to the right. The Python list insert() method doesn’t return anything. It…

10 Useful Python For Loop Examples

A Python for loop is a set of instructions that is repeated, or iterated, for every value in a sequence. Sometimes for-loops are referred to as definite loops because they have a predefined beginning and end as bounded by the…

3 Ways to Check Python Version in Linux

How to get the Python version on Linux is a commonly asked question during a Linux job interview. In this article, we will cover 3 ways to find the Python version in Linux. We will learn how to check the…

3 Ways to check Python 3 Version

In this article, we will cover how to check the python version in 3 ways. 3 Ways to check Python Version Commands Example Output python3 –version or python3 -V or python3 -VV Python 3.7.2 import sys sys.version 3.7.2 (tags: 9a3ffc0492,…