Functions in python

Introduction to python functions: In this article, We are going to learn what is python function? Different types of python functions. How to write and call python function in a program. So let’s get started with the definition of python function. What is python function? Function in python is a collection of related statements which … Read more Functions in python

Python pass statement

Introduction to python pass statement: From last few articles we are learning about looping statements in python. Until now we have covered basic looping statements i.e for loop and while loop. Also we have covered topic break and continue statements in python using which we can decide whether to exit or continue the loop execution. Now let’s proceed further in … Read more Python pass statement

Python break and continue statements

Introduction to python break and continue statements: In last few articles we have learned about looping in python and we have covered topics python for loop and python while loop. Basically these looping statements in python allows us to repeat the same task or code block efficiently. Using looping statements we can repeat the execution … Read more Python break and continue statements

Python while loop

Introduction to python while loop: In computer programming, we may come across situations wherein we may require to execute same code repeatedly. Looping simply means execution of specific code again and again till the provided condition gets satisfied. There are many different ways of looping available in python. So in previous article we have covered … Read more Python while loop

Python for loop

What is loop in python programming? In computer programming, In some situations we may require to execute certain code repeatedly. Looping simply means execution of specific code again and again till the provided condition gets satisfied. Python for loop is one of the most widely used loop statement. Typically Loop in python programming contains code … Read more Python for loop

Python Flow control and If-else Statement

Flow Control Statements in python: In computer programming flow control statements are used to structure the program. These statements uses decision making, Looping and branching to structure the program. They basically determines the flow of program i.e In a program which line of code is going to be executed next is decided by these python … Read more Python Flow control and If-else Statement

Sets in python

Introduction to sets in python: In this tutorial we are going to learn python Set data type. So let’s first start with the definition of python set data type. It is an unordered collection of unique (non duplicates) immutable elements or items. Here an individual data item of set is called as an element or … Read more Sets in python

String concatenation and replication in python

Introduction to strings in python: A string is a sequence of characters that include letters, numbers, and symbols like punctuation marks, etc. In simple words, a string is the data in text format. Strings data type also contains white spaces in it. Text data is one of the most used data types in our day … Read more String concatenation and replication in python

Identifiers and keywords in Python

What is meant by Identifiers and keywords in python? Both of these terms are related to naming conventions in python programming. In python code individual names given to the entities like variable, class, method etc. are known as identifiers. There are few words which are kept reserved by python language, which can’t be used as … Read more Identifiers and keywords in Python

Comments and indentation in python

How to add comments in python code: Comments are basically non-executable lines added in your program. While actual execution of program these commented lines are ignored by interpreter. Every programming language has its own way of inserting non-executable lines in the code. This provision of inserting comments in program is highly used in daily programming … Read more Comments and indentation in python