Category Python

Python as keyword

python as keyword

Python as keyword is primarily used for imports and assigning aliases to objects. Hence, allowing you to write code that is concise, readable and devoid of naming conflicts. In the following examples, you will learn how to use the as…

Python and keyword

python and keyword

Python and keyword is a logical operator used for combining two or more expressions into a single expression, otherwise known as compound expression. It is often used to create compound conditions, allowing programmers to make decisions based on multiple factors.…

Python Modules and Packages

python modules

Python modules and packages are powerful ways of structuring programs, making it easy for code reuse and minimizing the chances of name collisions across programs.

while loop in python

while loop in python

While loop is a popular looping construct in Python. Just like the for loop, the while loop is used to repeat an action any given number of times. Unlike the for loop, the while loop continues to loop until the…

for loop in python

for loop in python

For loop in Python is the most widely used looping construct and in this post, you will learn how to use the for loop in solving real-life problems.