Python Exception Handling

Exception handling in Python is a way to manage and respond to runtime errors. When an error occurs, Python typically stops and generates an exception message.

Python JSON

JSON (JavaScript Object Notation) is a lightweight data interchange format. Python has a built-in module 'json' to process JSON data.

Python datetime module

Python datetime module The datetime module in Python provides classes for manipulating dates and times. Here's a quick overview of the most commonly used classes and methods in the datetime…

Best Python interview questions

Python interview questions for freshers 1. What is python ? Python is a high-level programming language known for its simplicity and readability. It was created by Guido van Rossum and…

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.