Skip to main content

21 docs tagged with "Python"

View all tags

Array in Python

An Array in Python is a data structure that stores multiple elements of the same data type in contiguous memory locations.

Conditional Statements in Python

Conditional statements in Python allow you to make decisions in your code. They control the flow of execution depending on whether a given condition is True or False.

Exception Handling in Python

Exception handling in Python is a mechanism to gracefully manage errors that occur during program execution. Instead of letting your program crash, you can catch and handle errors, provide meaningful feedback, and ensure proper cleanup of resources.

Functions in Python

A function in Python is a block of reusable code that performs a specific task. Functions help organize code, avoid repetition, and make programs more modular and maintainable.

Introduction of Python

In this tutorial, you will learn about Python, its key features, why Python is so popular, how to write Python code, how to set up the environment, Python syntax compared to other languages, and more.

List in Python

A List in Python is a data structure that allows you to store multiple items in a single variable. Lists are ordered, mutable, and can contain elements of different data types.

Loops in Python

Loops in Python allow you to execute a block of code repeatedly. They are essential for automating repetitive tasks and processing collections of data efficiently.

Object-Oriented Programming

Python is an object-oriented programming language, which means it supports concepts like classes, objects, inheritance, polymorphism, encapsulation, and abstraction.

Python Constructor

Learn about constructors in Python OOP, including the __init__ method, types of constructors, and real-world use cases.

Python Data Types

Learn all standard data types in Python with examples and explanations.

Python Dictionaries

Complete theoretical explanation of dictionaries in Python, covering creation, modification, methods, and use-cases.

Python Operators

In Python, operators are special symbols used to perform operations on variables and values. Python supports a wide range of operators categorized based on their functionality.

Python Syntax

Python is known for its clean and readable syntax. It emphasizes code readability and allows developers to write fewer lines of code compared to other programming languages.

Python Variables

In Python, variables are used to store data that can be referenced and manipulated during program execution. A variable is essentially a name that is assigned to a value. Unlike many other programming languages, Python variables do not require explicit declaration of type. The type of the variable is inferred based on the value assigned.

Recursion in Python

Recursion is a programming technique where a function calls itself directly or indirectly to solve a problem.

Set in Python

A Set in Python is a built-in data structure used to store multiple unique elements in a single variable. Sets are unordered and mutable, making them an efficient tool for membership tests, eliminating duplicates, and performing mathematical set operations.

String in Python

In Python, a string is a sequence of characters enclosed within single ('), double ("), or triple quotes (''' ''' or """ """).

Type Casting

In Python, casting is the process of converting a variable from one type to another. Python has built-in functions for converting between data types.