Skip to Content

Python “is” and “is not”: Explained Using 14 Examples!

In this article let us learn about the “is” and “is not” operators in Python. The first step in the journey towards mastery of any programming language is to learn about the various operators provided by that language and learn how to wield them. Python is no exception to this rule! Every programming language comes …

Read More about Python “is” and “is not”: Explained Using 14 Examples!

Python’s “<" and "<=" Operators: Explained Using 11 Examples

In this article let us learn about the “<” and “<=” operators in python with the help of some examples and learn how to make use of this operator the same way the pros do! The first step in the journey towards mastery of any programming language is to learn about the various operators provided …

Read More about Python’s “<" and "<=" Operators: Explained Using 11 Examples

Python’s “>” and “>=” Operators: Explained Using 11 Examples

In this article let us learn about the “>” and “>=” operators in Python with the help of some examples and learn how to make use of this operator the same way the pros do! The first step in the journey towards mastery of any programming language is to learn about the various operators provided …

Read More about Python’s “>” and “>=” Operators: Explained Using 11 Examples

Python Comparison Operators Explained Using 10 Examples!

In this article let us look at all of the comparison operators in Python and learn how to use them in our programs! The first step in the journey towards mastery of any programming language is to learn about the various operators provided by that language and learn how to wield them. Python is no …

Read More about Python Comparison Operators Explained Using 10 Examples!

Figuring out if “break” was used to exit the loop in Python

In this short article let us see how we can figure out if the “break” statement was executed or not in the loop which has just been executed. Let us have a look at an example. In the example above, python will get an input from the user in each iteration, and if the user …

Read More about Figuring out if “break” was used to exit the loop in Python

Python “if” Statement with Multiple Conditions: Explained with Examples!

In this article let us learn how to implement if statement in Python with multiple condition evaluation For those of you in a hurry, here is the short version of the answer. “if” Statement with Multiple Conditions: Short Answer You can use the “and”/”or” logical operators in Python to implement “if” statements with multiple conditions. …

Read More about Python “if” Statement with Multiple Conditions: Explained with Examples!

Python: “if not true” How to write? Explained with Examples!

In this article let us learn how to implement the “if not” logic in our Python programs with the help of some examples! If you are in a hurry, here is the short version of the answer! The Short Version of the Answer In Python, depending on what we are trying to do, we can …

Read More about Python: “if not true” How to write? Explained with Examples!

Python: “[:]” Notation Explained with Examples!

In this article let us learn about the commonly used “[:]” notation in Python, and learn how we can wield the power of this notation in our programs. For those of you in a hurry, here is the short version of the answer. The Short Version of The Answer Python’s “[:]” notation, officially known as …

Read More about Python: “[:]” Notation Explained with Examples!