Skip to content

Tag Archives: python-basics

Prerequisite: Python Language Introduction   Before we start with how to install Python3 on Linux, let’s first go through the basic introduction to Python. Python… Read More
Given two variables x and y, write a Python program to swap their values. Let’s see different methods in Python to do this task.   Method… Read More
Sorting means rearranging a given sequence of elements according to a comparison operator on the elements. The comparison operator is used to decide the new… Read More
Main function is like the entry point of a program. However, Python interpreter runs the code right from the first line. The execution of the… Read More
Comments in Python are the lines in the code that are ignored by the interpreter during the execution of the program. Comments enhance the readability… Read More
Python is a well known high-level programming language. The Python script is basically a file containing code written in Python. The file containing python script… Read More
In Python, variables are the containers for storing data values. Unlike other languages like C/C++/JAVA, Python is not “statically typed”. We do not need to… Read More
Indentation is a very important concept of Python because without properly indenting the Python code, you will end up seeing IndentationError and the code will… Read More
Using loops in Python automates and repeats the tasks in an efficient manner. But sometimes, there may arise a condition where you want to exit… Read More
Using loops in Python automates and repeats the tasks in an efficient manner. But sometimes, there may arise a condition where you want to exit… Read More
Python While Loop is used to execute a block of statements repeatedly until a given condition is satisfied. And when the condition becomes false, the… Read More
Python For loop is used for sequential traversal i.e. it is used for iterating over an iterable like String, Tuple, List, Set or Dictionary. In… Read More
Sometimes, we just need to access a variable other than the usual way of accessing by it’s name. There are many method by which a… Read More
Here we will be discussing how to get the answer to all questions related to installing Python on Windows/Linux/mac OS. Python was developed by Guido… Read More
Python 2.x has been the most popular version for over a decade and a half. But now more and more people are switching to Python… Read More

Start Your Coding Journey Now!