Skip to content

Tag Archives: python-basics

Boolean datatype is the built-in data type in Python. It represents the True or False values. Like 0<1 is True and 7>10 is False. The… Read More
Given a Negative Integer, the task is to write a Python program to convert the integer into binary format.  Examples: Input: -14 Output: -1110 Input:… Read More
In this article, we are going to discuss how for loop is used to iterate over a sequence in Python. Python programming is very simple… Read More
The arithmetic value which is used for representing the quantity and used in making calculations are defined as NUMBERS. The writing system for denoting numbers… Read More
In this article, we will see how to take input using class in Python. Using a Class with Input in Python It is to be… Read More
In this article, we will understand the concept of variable shadowing in a Python programming language. To understand this concept, we need to be well… Read More
In this article, let us see how to convert a nested for loop to a map equivalent in python. A nested for loop’s map equivalent… Read More
Python raise Keyword is used to raise exceptions or errors. The raise keyword raises an error and stops the control flow of the program. It… Read More
A boolean expression results in two values(True, False) similar to this a boolean variable can also be assigned either (True, False). Here False keyword represents… Read More
Python OR is a logical operator keyword. The OR operator returns True if at least one of the operands becomes to be True.  Note: In… Read More
In this article, we will discuss how to access index in python for loop in Python. Here, we will be using 4 different methods of… Read More
Python nonlocal keyword is used to reference a variable in the nearest scope.  Python nonlocal Keyword Example  In this example, we demonstrate the working of… Read More
In this article, we are going to see ‘as’ Keyword. The keyword ‘as’ is used to create an alias in python. Advantages with ‘as’ keyword:… Read More
Python not keyword is a logical operator which is usually used for figured out the negation or opposite boolean value of the operand. The Keyword… Read More
Python def keyword is used to define a function, it is placed before a function name that is provided by the user to create a… Read More

Start Your Coding Journey Now!