Tag Archives: python-basics

Given a string input, the task is to write a Python program to create a variable from that input (as a variable name) and to… Read More
Exiting a Python script refers to the process of termination of an active python process. In a more practical way, it is generally a call… Read More
Given some variables, the task is to write a Python program to check multiple variables against a value.  There are three possible known ways to… Read More
Breaking a long line has nothing to do with the output, it is just trying to fix how our code appears. Writing a really long… Read More
An int object can be used to represent the same value in the format of the byte. The integer represents a byte, is stored as… Read More
A bytes object can be converted to an integer value easily using Python. Python provides us various in-built methds like from_bytes() as well as classes… Read More
Prerequisite: Python Language Introduction Python is a general-purpose interpreted, interactive, object-oriented, and high-level programming language. It was created by Guido van Rossum. It is an… Read More
Data types are the classification or categorization of data items. It represents the kind of value that tells what operations can be performed on a… Read More
If-elif-else statement is used in Python for decision-making i.e the program will evaluate test expression and will execute the remaining statements only if the given… Read More
In this article, we are going to discuss how to view all defined variables in Python. Viewing all defined variables plays a major role while… Read More
The keywords are some predefined and reserved words in python that have special meaning. Keywords are used to define the syntax of the coding. The… Read More
A variable is a named memory space that is used to store some data which will in-turn be used in some processing. All programing languages… Read More
Python is a scripting language. This means that a Python code is executed line by line with the help of a Python interpreter. When a… Read More
Python is a scripting language. This means that a Python code is executed line by line with the help of a Python interpreter. When a… Read More
None is used to define a null value. It is not the same as an empty string, False, or a zero. It is a data… Read More