Skip to content

Tag Archives: python-basics

Unicode is also called Universal Character set. ASCII uses 8 bits(1 byte) to represents a character and can have a maximum of 256 (2^8) distinct… Read More
Python contains built-in numeric data types as int(integers), float, and complex. Compared to C programming, Python does not have signed and unsigned integers as data… Read More
n this article, we will see how to break out of multiple loops in Python. For example, we are given a list of lists arr… Read More
A process that is repeated more than one time by applying the same logic is called an Iteration.  In programming languages like python, a loop… Read More
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