Course
Python
107 lessons221 min total
-
10 Python Mini Projects for Beginners To Do
Python Mini Projects you should do to test your skills and knowledge and to learn to implement Python…
-
Implementation of Stack in Python
A stack is an ordered collection of items where the addition of new items and the removal of…
-
Implementation of Queue in Python
A queue is an ordered collection of items where the addition of new items happens at one end,…
-
Implementation of Deques in Python
A deque, also known as a double-ended queue, is an ordered collection of items similar to the queue.…
-
Understand Big-O Notation Complexity Of Algorithm
Big-O notation is a relative representation of the complexity of an algorithm.
-
8 common data structures every programmer must know
Data structure is a way of data organization, management, and storage format that enables efficient access and modification.
-
Top Coding Challenge Websites in 2020
Coding Challenge websites you can use to develop your coding skills and the best way to improve your…
-
Reverse a String in Python
This interview question requires you to reverse a string using recursion. Make sure to think of the base…
-
String Permutation in Python
Given a string, write a function that uses recursion to output a list of all the possible permutations…
-
Fibonnaci Sequence in Python
Implement a Fibonnaci Sequence in three different ways: Recursively Dynamically (Using Memoization to store results) Iteratively
-
Coin Change Problem in Python
Given a target amount n and a list (array) of distinct coin values, what's the fewest coins needed…
-
Implementation of Binary Search in Python
Binary Search, also known as half-interval search, logarithmic search, or binary chop, is a search algorithm that finds…
-
Implementation of a Bubble Sort in Python
The bubble sort makes multiple passes through a list. It compares adjacent items and exchanges those that are…
-
Implementation of Insertion Sort in Python
Insertion Sort builds the final sorted array (or list) one item at a time.
-
Implementation of Merge Sort in Python
Merge sort is a recursive algorithm that continually splits a list in half. If the list is empty…
-
Implementation of Quick Sort in Python
A quick sort first selects a value, which is called the pivot value. Although there are many different…
-
Introduction – Python programming language
What is Python? Python is a high-level, general-purpose, dynamic, interpreted programming language that is widely used. Guido Van Rossum is…
-
Python Installation
Python Installation on Windows involves the following steps to set up the Python environment on a Windows system:…
-
Introduction to Python IDLE
What is Python IDLE? Python IDLE is an acronym that stands for Integrated Development and Learning Environment. is…
-
Python 2 vs. Python 3
Python is one of the programming languages that has boosted the world of technology to new heights. Python…
-
Python Syntax Rules & Hello World Program
Python Syntax Rules: Here are a few things you should know beforehand: Python is case-sensitive, which means, for…
-
Python Mathematical Operators
Mathematical Operators: Mathematical Operators are used in mathematics to perform operations such as addition, subtraction, multiplication, and division.…
-
Math Functions in Python
Python allows us to perform a variety of mathematical operations with ease by importing a module called “math,”…
-
Python operators
What are Python operators? Python operators are used to perform operations on values and variables in general. These…
-
Python Variables
A variable is a name that refers to a memory location. A Python variable, also known as an…
-
Modules and Functions in Python
What exactly is a Python Module? Python modules are files that contain Python definitions and statements. Functions, classes,…
-
Input and Output in Python
Two built-in functions in Python are used to perform input and output operations (OI Operations). The two built-in…
-
Data Types in Python
The classification or categorization of data items is referred to as data types. It represents the type of…
-
Strings in Python
A Python string is a collection of characters enclosed by single, double, or triple quotes. The string is…
-
String Functions in Python
Built-in String Functions: Many functions are built into the Python interpreter and are always available. You’ll see a…
-
String Functions – II
Table of Python String Methods. Function Name Description capitalize() The string’s first character is changed to an uppercase…
-
Python Lists
As we have already seen in Data Types in Python that Python Lists are just like dynamically sized arrays,…
-
Iterate over a list in Python
In Python, there are several different ways to iterate through a list. Let’s examine every method for iterating…
-
Remove elements from a Python List
There are three methods to remove elements from a list: Making use of the remove() method Using the…
-
Python Dictionary
Python Dictionary is used to store the data in a key-value pair format. Python’s dictionary data type can…
-
Python Dictionary Methods
Let’s look at some crucial features that are very useful when experimenting with dictionaries in Python. Python Dictionary…
-
Python Tuple
What is Python Tuple? A Python Tuple is a group of items that are separated by commas. The…
-
Relational & Logical Operators in Python
In Python, operators are specialized symbols that perform different computations. To create an expression, we combine operators and…
-
Python – if, elif, else Conditions
Python’s conditional statements carry out various calculations or operations according to whether a particular Boolean constraint evaluates to…
-
Loops in Python
There may be times when you need to execute a block of code several times. A loop statement…
-
User-Defined Functions in Python
A function is a collection of statements that accept input, perform some specific computation, and return output. The…
-
Object-Oriented Programming in Python
What Is Object-Oriented Programming? Alan Kay coined the term “Object-Oriented Programming” (OOP), also known as oops concepts in…
-
Python Class
As we discussed in the previous tutorial, a class is a virtual entity that can be thought of…
-
Constructor in Python
What is a Constructor? A constructor is a special method (function) used to initialize the class’s instance members. The…
-
Destructors in Python
When an object is destroyed, the destructors are called. Destructors are not as necessary in Python as they…
-
Inheritance in Python
Inheritance is a fundamental idea in object-oriented programming (OOP) languages. By deriving a class from another class, you…
-
Types of Inheritance in Python
Types of Inheritance depend upon the number of child and parent classes involved. There are four types of…
-
Access Modifiers in Python
When implementing the concepts of inheritance in Python code, access specifiers or access modifiers are used to restrict…
-
Method Overriding in Python
Method overriding is a feature of any object-oriented programming language that allows a subclass or child class to…
-
Polymorphism in Python
What is Polymorphism? Polymorphism is derived from the Greek words poly (many) and morphism (change) (forms). That is,…
-
Static Keyword in Python
Class or Static Variables: In Python, a variable declared within a class but outside any method is referred…
-
Operator Overloading in Python
Operator overloading refers to providing meaning that extends beyond their predefined operational meaning. For example, the operator +…
-
Errors and Built-in Exceptions
A minor typing error can result in an error in any programming language as we must follow the…
-
Python Exception Handling – I
What is Python Exception Handling? Exception handling is a Python concept used to handle exceptions and errors during…
-
Python Exception Handling – II(Finally Keyword )
Finally Keyword Python has a finally keyword that is always executed after a try and except block. The…
-
Python Exception Handling – III(Raise Keyword )
In Python, the raise keyword is primarily used for exception handling. Exception handling is responsible for handling exceptions…
-
File Handling in Python
What is File Handling? Every web app requires the handling of files. File handling is critical when data must be stored permanently in a file. A file is a named location on the…
-
Python File Operations
Why are file operations required in Python?Working with files is a must when dealing with large datasets in…
-
Multithreading In Python
Let’s look at Python threads first before presenting the idea of multithreading. Threads: Threads are quick processes (smaller versions…
-
threading Module In Python
Python threading, as we saw in the previous tutorial, allows us to run different parts of our program concurrently,…
-
Thread class and its Object
The Thread class in Python’s threading module is used to create and manage threads. We can extend this…
-
Lock Object in Python
What is a Lock Object? In Python, a threading.Lock object is used to synchronize the execution of threads.…
-
RLock Object in Python
RLock (re-entrant lock) is a type of lock that allows the holder of the lock to acquire it…
-
Event Object in Python
What is an Event Object? An Event object in Python is a class that is used to signal…
-
Timer Objects in Python
Timer objects are used to schedule a function to be executed at a certain time in the future.…
-
Condition object in Python
A Condition object in Python is a synchronization object that allows multiple threads to wait for a specific…
-
Barrier Object in Python
Barrier object in Python is used to synchronize the execution of multiple threads. When a thread reaches a…
-
Python __name__ Variable
Because Python lacks a main() function, when the command to run a Python program is given to the…
-
Iterable and Iterator in Python
What is an Iterable? In Python, an iterable is an object that can be looped over, such as…
-
yield Keyword in Python
The yield keyword in Python is used in the body of a function like a return statement, but…
-
Generators in Python
Generator Function: In Python, a generator is a function that allows you to create an iterator, an object…
-
Python Closures
Before we can understand what a closure is, we must first understand nested functions and non-local variables. Nested…
-
Python Decorators
In Python, a decorator is a special kind of function that modifies the behavior of another function. Decorators…
-
@property Decorator in Python
The @property decorator in Python is used to define a method as a “getter” for the boundaries of…
-
Assert Statement in Python
What is Assertion? In any programming language, assertions are the debugging tools that aid in the efficient operation…
-
Garbage Collection in Python
In Python, garbage collection refers to the process of automatically freeing up memory that is no longer being…
-
Python Shallow and Deep Copy
Assignment statements in Python do not copy objects; instead, they create bindings between a target and an object.…
-
Logging Module in Python
What is Logging? Logging is a method of recording events that occur when software is run. Logging is…
-
Logging basicConfig()function
The basicConfig() function of the Python logging module is used to configure the logging system. It sets the…
-
Python Logging in a file
In Python, you can use the built-in logging module to print logging in a file. Here are the…
-
Python Logging Variables Data
In Python, the logging module allows you to log messages to a file or other output destination. You…
-
Python Logging Classes and Functions
In Python, the logging module provides several classes and functions to help you log messages in your code.…
-
MySQL with Python
This tutorial will teach you what MySQL is, what the prerequisites are for using MySQL in Python, and…
-
Create Database-Python MySQL
To create a new MySQL database in Python, you can use the mysql-connector-python library to connect to the…
-
Create and List Table-Python
What is a table in a database? A table in a database is a collection of data organized…
-
Insert data in Table-MySQL
Before we insert data into our database, we need to create a table. To do so, refer to Python:…
-
Select data from Table-MySQL
In MySQL, columns and rows make up the tables. The rows and columns of data records define the…
-
Selection Sort
What is Selection Sort? Selection sort is a sorting method that finds the smallest element in an unsorted…
-
Insertion Sort
What is Insertion Sort? Insertion sort is a straightforward sorting algorithm that constructs the final sorted array one…
-
Quick Sort
What is Quick Sort? Quick sort is a common sorting algorithm that sorts an array using the divide-and-conquer…
-
Merge Sort
What is Merge Sort? Merge sort is a divide-and-conquer method that sorts an array by splitting it into…
-
Heap Sort
What is Heap Sort? Heap sort is a sorting method that works by first constructing a binary heap…
-
Radix Sort
What is Radix Sort? Radix sort is an integer-based linear sorting method that groups items depending on their…
-
Bucket Sort
What is Bucket Sort? Bucket Sort is a sorting method that divides an array into tiny buckets before…
-
DSA: Strings Concept
What is a String? A string is a character sequence in computer science. It’s one of the most…
-
Problems based on Strings
In the previous post, we got an introduction to Strings and their methods. Let us now take a…
-
DSA: Hashing
What is Hashing? Hashing is a computer science technique for mapping arbitrary-size input to a fixed-size result. A…
-
DSA: Collision in Hashing
What is Collision in Hashing? In hashing, collisions occur when two or more keys yield the same hash…
-
Recursion in DSA
What is Recursion? In computer science, recursion is a strong programming technique that is used in many algorithms…
-
DSA: Linked List
What is a Linked List? A linked list is a linear data structure composed of nodes, each of…
-
Problems based on Linked List
Let us see a few problems based on Linked List. Given a linked list of N nodes such that it…
-
DSA: Trees
What is Tree Data Structure? A tree data structure is made up of nodes that are connected via…
-
DSA: Types of Tree
There are various varieties of trees that are often used in the context of Data Structures and Algorithms…
-
DSA: Binary Search
What is Searching? Searching is a fundamental process in computer science that is commonly used to locate certain…
-
DSA: Strings Pattern Matching
What is Pattern Matching? Pattern matching is a fundamental problem in computer science that is employed in a…
-
Problems based on Pattern Matching
In the previous post, we discussed various pattern-matching algorithms, let us now see a few problems based on…
-
Two Sum: Check for Two Numbers with Sum K
Problem Statement (Asked By Google) Given a list of integers and a target number k, determine if there…