Python – if Statement

Python if statement runs either one set of statements or another set of statements depending upon the condition associated with. If if-else, and if elif are three selection statements available in Python.

Python While Loop

Python While Loop is a condition-based looping statement available in Python. Like other programming languages while loop also supports optional else statement.

Python For Loop

Python For Loop is one of the most important building block of Python Programming Language but in Python the working of for loop is different with other programming languages like CPP or Java.

Python Lists

Python Lists is one of the most common data type of Python. It is the basic building block of Python Programming Language. This tutorial covers all the basics of Python lists in brief and comes with sample exercises with solutions.

Python String

Python String tutorial with basic concept of string manipulation program and assignment on string for practice

Python Tuple

A Python tuple is a collection of objects which is ordered and immutable. Tuples are sequences, just like lists. The differences between tuples and lists are, the tuples cannot be changed ie immutable and the list is mutable, uses parentheses, whereas lists use square brackets. Creating a tuple is as simple as putting different comma-separated […]