List in Python

In this tutorial, we will learn about the list in Python. We will discuss how to create, slice, insert, update and remove an element from Python list with example. What is the List The List is a sequence data type in Python. The List can store different types of data. The List can have any…

Read More »

Python – Break, Continue & Pass

In this tutorial, we will learn about the break, continue and pass statements in Python. These statements are also known as loop control statements and can alter the normal flow of a loop. Python Break Statement Suppose you have an assignment to find a specific number in a given range. When your code finds that…

Read More »

Python – For Loops

The for loop in Python is different from other programming languages like C and Java. A for loop in Python is used to iterate over a sequence or a collection (list, tuple, dictionary, etc.). Syntax of For Loop In the above for loop syntax, the variable takes the next value from sequence until the last…

Read More »