Identity operators in Python

There are mainly two identity operators in Python – is operator and, is not operator. These are different from equality (==) and not equal (!=)…

Comparison operators in Python

A Python code often involves comparing values stored in variables. This is made possible through comparison operators. For instance, with if..else statements. If some condition…

Arithmetic operators in Python

In this article, we would cover Arithmetic operators in Python. These help us perform certain mathematical operations – Addition, Division, Exponentiation, Floor Division, Modulus, Multiplication…

Nested if in Python

We consider this article to be an extension of if..else statement in Python. if statements inside a if statement are Nested if statements. In a…

if..else statement in Python

One of the widely-used flow control statement type in Python is if..else statement. Through flow control statements, we can figure out which statement we need…

ValueError in Python

In this article, we would cover ValueError in Python. Sometimes, we just pass an argument of right type to a function. But, completely miss to…