Python Modules

Python modules are files containing Python code. They can define functions, classes, and variables that you can use in other Python scripts.

Variable scope in Python

In Python, variable scope refers to the region of a program where a particular variable is accessible. It determines where you can access a variable within your code. Python has…

Polymorphism In Python

Polymorphism is a fundamental concept in OOP. polymorphism can be achieved through method overriding and method overloading.

Inheritance In Python

In Python, Inheritance is a mechanism that allows a class to inherit properties and methods of another class. This promotes code reusability.

Python Classes and Objects

Object is the most basic concept and a key to understand the Object-Oriented programming .Object has two characteristics, State and Behavior.

Python Functions

Functions are reusable blocks of code that allow you to break down your program into smaller, modular components. They are defined using def keyword.

Python FOR loop

Python loop is used to iterate over a sequence of elements. Sequence can be a list, tuple, string, dictionary, or any other iterable object.

Python While Loop

Loops are essential constructs in Python for iterating over collections of data or executing a block of code repeatedly.

Python if-else and conditional expressions

The if-else statement in Python is used for decision-making. It allows you to execute certain code if a condition is true and another set of code if the condition is false.

Python Dictionary

In Python, a dictionary is a collection of key-value pairs. It is a mutable, unordered collection that allows you to store data in the form of key-value pairs.

Python Sets

Python Set is an unordered collection of unique elements. It is defined using curly braces {} or the set() constructor. Sets are mutable.

Read more about the article Python Tuples
Python Tuples

Python Tuples

Tuples in Python are immutable sequences, similar to lists, but with the key distinction that once created, they cannot be modified.

Read more about the article Python List
python list examples

Python List

A Python list is a data structure that is used to store a collection of items. Lists are ordered, mutable (modifiable), and can contain elements of different data types, including integers, floats, strings, or even other lists.

Read more about the article Data Types in Python
Python Data Types

Data Types in Python

Python provides Numeric data type like int, float, complex. Sequence type like List and Tuple, Mapping type Set type , Boolean type and Binary type.

Read more about the article Python Variables
python variables

Python Variables

variables are used to store data values. They are like containers that hold information which can be referenced and manipulated throughout the program.

Read more about the article Input function in python
Input function in python

Input function in python

The input() function is used to take user input from the standard input such as the keyboard. It prompts the user with a message (optional), waits for the user to enter some text, and then returns the text entered by the user as a string.

Read more about the article String Manipulation in Python
string manipulation in python

String Manipulation in Python

Hi All. In this post we will understand string manipulation using some built-in functions. String is a sequence of character. Python provides built-in methods that operates on Strings. String manipulation…

Read more about the article Python Overview And History
python logo

Python Overview And History

Python is a high-level, interpreted programming language known for its simplicity and readability. Here's an overview of Python: Key Features Easy to Learn and Read: Python's syntax is designed to…