Python

Static Method in Python

* A **static method** is a method that does not depend on object or class data.* It is defined using the **`@staticmethod` decorator**.* It behaves...

1 day ago
Python

Class Method in Python

* A **class method** is bound to the class, not the object.* It uses **`cls`** to refer to the class.* It is used to **access or modify class variab...

1 day ago
Internet Programmimg

Evolution of the Internet

The evolution of the Internet reflects advancements in technology, communication, and human collaboration. From its humble beginnings as ARPANET to to...

1 week ago
DSA

Time and Space Complexity

Writing efficient code Solving competitive programming problems Cracking technical interviews

1 week ago
DSA

What is Data Structure

Data structures form the foundation of efficient programming. Choosing the appropriate data structure for a problem is essential for optimizing perfor...

1 week ago
DSA

Major Data Structures

* **Linear DS:** Array, Linked List, Stack, Queue, Deque* **Non-Linear DS:** Tree, Graph, Heap, Trie* **Special DS:** Hash Table

1 week ago
Python

Characteristics of Object-Oriented Programming (OOP)

OOP is based on **objects and classes** Main characteristics: * **Encapsulation** → Data hiding * **Abstraction** → Hiding complexity * **Inh...

1 week ago
Python

Object in Python

An **object** is an instance of a class. It contains **data and methods**. Objects are created using the class name. Each object has its own **mem...

1 week ago
Python

Class in Python

A **class** is a blueprint for creating objects. Objects are instances of a class. Classes contain **attributes and methods**. `__init__` is a con...

1 week ago
Python

Type Casting in Python

**Type casting** is converting one data type to another. Two types: * **Implicit (automatic)** * **Explicit (manual)** Common functions: `int(...

2 weeks ago
Python

Input Function in Python

`input()` is used to **take user input from the keyboard**. It returns data as a **string by default**. Type conversion is required for numeric ope...

2 weeks ago
Python

Variables and Data Types in Python

**Variables** are used to store data in Python. Python is **dynamically typed**, so no need to declare data types. Data types define the **type of...

2 weeks ago