Python dictionary In this tutorial, we will discuss the dictionary in the python programming language. Dictionary is a special type of variable in python. It is an unordered collection of items, it has a pair of items, key and value. When creating the dictionary, we can place items inside of the dictionary using curly braces{}…
Tag: Python Language
for loop with continue,break,pass in Python
for loop with continue, break and pass in Python In this tutorial, we will discuss the concept of for loop with continue, break and pass in Python. for loop allows to repeat tasks in an efficient manner. In python, pass, continue, and break statements can be used in for loops. for loop with continue, break…
Nested if statements in Python language
Nested if statements in Python language In this tutorial, we will discuss the Nested if statements in Python language. “Nested if” can check a condition using if statements one after another if the condition resolves to be true. We can have one if … elif… else statements inside another if …. else statement. This is…
if elif else statements in python language
if elif else statements in python language In this tutorial, we will discuss the concept of “if” “elif” “else” statements in python language. In this post, we are going to learn how to use the if-else statements to decision making if condition in python if test_expression: statement(s) Flow diagram of the if-else statement in…
Nested while loop in Python language
Nested while loop in Python language In this tutorial, we will discuss the concept of Nested while loop in Python language Python programming language allows the use of one while loop inside another while loop. It is known as nested while loop. syntax of nested while loop The syntax of nested while loop in python….
Python programming language Functions
Python programming language functions In this tutorial, we will discuss the concept of Python programming language functions. In python, function is a collection of related and reusable statements include as a single unit. This is used to perform a specific action that looks like a method. Basically two type of functions are available in python….
Python language for loop with example
Python language for loop with example In this tutorial, we will discuss the concept of Python language’s for loop with example In this post, we are going to learn how to use for loop in Python language Python for loop is used to repeat a block of codes up to limited time to keep the…
Tuple in python language with example
Tuple in python language with example In this tutorial, we will discuss the concept of Tuple in python programming language In python language, tuple is similar to a list with some difference. the differents between both are we can not changed the elements of tuple once after is is assigned. but list elenment can…