Python

107 lessons221 min total



  1. 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…


    2 min





  2. Implementation of Stack in Python
    A stack is an ordered collection of items where the addition of new items and the removal of…


    2 min





  3. Implementation of Queue in Python
    A queue is an ordered collection of items where the addition of new items happens at one end,…


    1 min





  4. Implementation of Deques in Python
    A deque, also known as a double-ended queue, is an ordered collection of items similar to the queue.…


    2 min





  5. Understand Big-O Notation Complexity Of Algorithm
    Big-O notation is a relative representation of the complexity of an algorithm.


    8 min





  6. 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.


    2 min





  7. Top Coding Challenge Websites in 2020
    Coding Challenge websites you can use to develop your coding skills and the best way to improve your…


    3 min





  8. Reverse a String in Python
    This interview question requires you to reverse a string using recursion. Make sure to think of the base…


    1 min





  9. String Permutation in Python
    Given a string, write a function that uses recursion to output a list of all the possible permutations…


    1 min





  10. Fibonnaci Sequence in Python
    Implement a Fibonnaci Sequence in three different ways: Recursively Dynamically (Using Memoization to store results) Iteratively


    1 min





  11. Coin Change Problem in Python
    Given a target amount n and a list (array) of distinct coin values, what's the fewest coins needed…


    1 min





  12. 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…


    1 min





  13. 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…


    1 min





  14. Implementation of Insertion Sort in Python
    Insertion Sort builds the final sorted array (or list) one item at a time.


    1 min





  15. Implementation of Merge Sort in Python
    Merge sort is a recursive algorithm that continually splits a list in half. If the list is empty…


    1 min





  16. Implementation of Quick Sort in Python
    A quick sort first selects a value, which is called the pivot value. Although there are many different…


    1 min





  17. 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…


    2 min





  18. Python Installation
    Python Installation on Windows involves the following steps to set up the Python environment on a Windows system:…


    1 min





  19. Introduction to Python IDLE
    What is Python IDLE? Python IDLE is an acronym that stands for Integrated Development and Learning Environment. is…


    1 min





  20. Python 2 vs. Python 3
    Python is one of the programming languages that has boosted the world of technology to new heights. Python…


    2 min





  21. 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…


    1 min





  22. Python Mathematical Operators
    Mathematical Operators: Mathematical Operators are used in mathematics to perform operations such as addition, subtraction, multiplication, and division.…


    1 min





  23. Math Functions in Python
    Python allows us to perform a variety of mathematical operations with ease by importing a module called “math,”…


    2 min





  24. Python operators
    What are Python operators? Python operators are used to perform operations on values and variables in general. These…


    5 min





  25. Python Variables
    A variable is a name that refers to a memory location. A Python variable, also known as an…


    2 min





  26. Modules and Functions in Python
    What exactly is a Python Module? Python modules are files that contain Python definitions and statements. Functions, classes,…


    2 min





  27. 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…


    2 min





  28. Data Types in Python
    The classification or categorization of data items is referred to as data types. It represents the type of…


    3 min





  29. Strings in Python
    A Python string is a collection of characters enclosed by single, double, or triple quotes. The string is…


    3 min





  30. String Functions in Python
    Built-in String Functions: Many functions are built into the Python interpreter and are always available. You’ll see a…


    1 min





  31. String Functions – II
    Table of Python String Methods. Function Name  Description capitalize() The string’s first character is changed to an uppercase…


    2 min





  32. Python Lists
    As we have already seen in Data Types in Python that Python Lists are just like dynamically sized arrays,…


    1 min





  33. 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…


    1 min





  34. Remove elements from a Python List
    There are three methods to remove elements from a list: Making use of the remove() method Using the…


    1 min





  35. Python Dictionary
    Python Dictionary is used to store the data in a key-value pair format. Python’s dictionary data type can…


    1 min





  36. Python Dictionary Methods
    Let’s look at some crucial features that are very useful when experimenting with dictionaries in Python. Python Dictionary…


    1 min





  37. Python Tuple
    What is Python Tuple? A Python Tuple is a group of items that are separated by commas. The…


    1 min





  38. Relational & Logical Operators in Python
    In Python, operators are specialized symbols that perform different computations. To create an expression, we combine operators and…


    1 min





  39. Python – if, elif, else Conditions
    Python’s conditional statements carry out various calculations or operations according to whether a particular Boolean constraint evaluates to…


    2 min





  40. Loops in Python
    There may be times when you need to execute a block of code several times. A loop statement…


    2 min





  41. User-Defined Functions in Python
    A function is a collection of statements that accept input, perform some specific computation, and return output. The…


    2 min





  42. 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…


    3 min





  43. Python Class
    As we discussed in the previous tutorial, a class is a virtual entity that can be thought of…


    2 min





  44. Constructor in Python
    What is a Constructor? A constructor is a special method (function) used to initialize the class’s instance members. The…


    1 min





  45. Destructors in Python
    When an object is destroyed, the destructors are called. Destructors are not as necessary in Python as they…


    2 min





  46. Inheritance in Python
    Inheritance is a fundamental idea in object-oriented programming (OOP) languages. By deriving a class from another class, you…


    1 min





  47. Types of Inheritance in Python
    Types of Inheritance depend upon the number of child and parent classes involved. There are four types of…


    1 min





  48. Access Modifiers in Python
    When implementing the concepts of inheritance in Python code, access specifiers or access modifiers are used to restrict…


    2 min





  49. Method Overriding in Python
    Method overriding is a feature of any object-oriented programming language that allows a subclass or child class to…


    1 min





  50. Polymorphism in Python
    What is Polymorphism? Polymorphism is derived from the Greek words poly (many) and morphism (change) (forms). That is,…


    2 min





  51. Static Keyword in Python
    Class or Static Variables: In Python, a variable declared within a class but outside any method is referred…


    1 min





  52. Operator Overloading in Python
    Operator overloading refers to providing meaning that extends beyond their predefined operational meaning. For example, the operator +…


    2 min





  53. Errors and Built-in Exceptions
    A minor typing error can result in an error in any programming language as we must follow the…


    4 min





  54. Python Exception Handling – I
    What is Python Exception Handling? Exception handling is a Python concept used to handle exceptions and errors during…


    1 min





  55. Python Exception Handling – II(Finally Keyword )
    Finally Keyword  Python has a finally keyword that is always executed after a try and except block. The…


    1 min





  56. Python Exception Handling – III(Raise Keyword )
    In Python, the raise keyword is primarily used for exception handling. Exception handling is responsible for handling exceptions…


    1 min





  57. 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…


    2 min





  58. Python File Operations
    Why are file operations required in Python?Working with files is a must when dealing with large datasets in…


    2 min





  59. Multithreading In Python
    Let’s look at Python threads first before presenting the idea of multithreading. Threads: Threads are quick processes (smaller versions…


    2 min





  60. threading Module In Python
    Python threading, as we saw in the previous tutorial, allows us to run different parts of our program concurrently,…


    3 min





  61. Thread class and its Object
    The Thread class in Python’s threading module is used to create and manage threads. We can extend this…


    3 min





  62. Lock Object in Python
    What is a Lock Object? In Python, a threading.Lock object is used to synchronize the execution of threads.…


    2 min





  63. RLock Object in Python
    RLock (re-entrant lock) is a type of lock that allows the holder of the lock to acquire it…


    1 min





  64. Event Object in Python
    What is an Event Object? An Event object in Python is a class that is used to signal…


    2 min





  65. Timer Objects in Python
    Timer objects are used to schedule a function to be executed at a certain time in the future.…


    2 min





  66. Condition object in Python
    A Condition object in Python is a synchronization object that allows multiple threads to wait for a specific…


    2 min





  67. Barrier Object in Python
    Barrier object in Python is used to synchronize the execution of multiple threads. When a thread reaches a…


    3 min





  68. Python __name__ Variable
    Because Python lacks a main() function, when the command to run a Python program is given to the…


    2 min





  69. Iterable and Iterator in Python
    What is an Iterable? In Python, an iterable is an object that can be looped over, such as…


    2 min





  70. yield Keyword in Python
    The yield keyword in Python is used in the body of a function like a return statement, but…


    3 min





  71. Generators in Python
    Generator Function: In Python, a generator is a function that allows you to create an iterator, an object…


    3 min





  72. Python Closures
    Before we can understand what a closure is, we must first understand nested functions and non-local variables. Nested…


    2 min





  73. Python Decorators
    In Python, a decorator is a special kind of function that modifies the behavior of another function. Decorators…


    2 min





  74. @property Decorator in Python
    The @property decorator in Python is used to define a method as a “getter” for the boundaries of…


    3 min





  75. Assert Statement in Python
    What is Assertion? In any programming language, assertions are the debugging tools that aid in the efficient operation…


    1 min





  76. Garbage Collection in Python
    In Python, garbage collection refers to the process of automatically freeing up memory that is no longer being…


    3 min





  77. Python Shallow and Deep Copy
    Assignment statements in Python do not copy objects; instead, they create bindings between a target and an object.…


    2 min





  78. Logging Module in Python
    What is Logging? Logging is a method of recording events that occur when software is run. Logging is…


    3 min





  79. Logging basicConfig()function
    The basicConfig() function of the Python logging module is used to configure the logging system. It sets the…


    3 min





  80. Python Logging in a file
    In Python, you can use the built-in logging module to print logging in a file. Here are the…


    1 min





  81. Python Logging Variables Data
    In Python, the logging module allows you to log messages to a file or other output destination. You…


    1 min





  82. Python Logging Classes and Functions
    In Python, the logging module provides several classes and functions to help you log messages in your code.…


    3 min





  83. MySQL with Python
    This tutorial will teach you what MySQL is, what the prerequisites are for using MySQL in Python, and…


    2 min





  84. Create Database-Python MySQL
    To create a new MySQL database in Python, you can use the mysql-connector-python library to connect to the…


    1 min





  85. Create and List Table-Python
    What is a table in a database? A table in a database is a collection of data organized…


    3 min





  86. Insert data in Table-MySQL
     Before we insert data into our database, we need to create a table. To do so, refer to Python:…


    1 min





  87. Select data from Table-MySQL
    In MySQL, columns and rows make up the tables. The rows and columns of data records define the…


    1 min





  88. Selection Sort
    What is Selection Sort? Selection sort is a sorting method that finds the smallest element in an unsorted…


    2 min





  89. Insertion Sort
    What is Insertion Sort? Insertion sort is a straightforward sorting algorithm that constructs the final sorted array one…


    2 min





  90. Quick Sort
    What is Quick Sort? Quick sort is a common sorting algorithm that sorts an array using the divide-and-conquer…


    3 min





  91. Merge Sort
    What is Merge Sort? Merge sort is a divide-and-conquer method that sorts an array by splitting it into…


    1 min





  92. Heap Sort
    What is Heap Sort? Heap sort is a sorting method that works by first constructing a binary heap…


    1 min





  93. Radix Sort
    What is Radix Sort? Radix sort is an integer-based linear sorting method that groups items depending on their…


    2 min





  94. Bucket Sort
    What is Bucket Sort? Bucket Sort is a sorting method that divides an array into tiny buckets before…


    2 min





  95. DSA: Strings Concept
    What is a String? A string is a character sequence in computer science. It’s one of the most…


    5 min





  96. Problems based on Strings
    In the previous post, we got an introduction to Strings and their methods. Let us now take a…


    2 min





  97. DSA: Hashing
    What is Hashing? Hashing is a computer science technique for mapping arbitrary-size input to a fixed-size result. A…


    5 min





  98. DSA: Collision in Hashing
    What is Collision in Hashing? In hashing, collisions occur when two or more keys yield the same hash…


    3 min





  99. Recursion in DSA
    What is Recursion? In computer science, recursion is a strong programming technique that is used in many algorithms…


    4 min





  100. DSA: Linked List
    What is a Linked List? A linked list is a linear data structure composed of nodes, each of…


    3 min





  101. 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…


    3 min





  102. DSA: Trees
    What is Tree Data Structure? A tree data structure is made up of nodes that are connected via…


    4 min





  103. DSA: Types of Tree
    There are various varieties of trees that are often used in the context of Data Structures and Algorithms…


    4 min





  104. DSA: Binary Search
    What is Searching? Searching is a fundamental process in computer science that is commonly used to locate certain…


    4 min





  105. DSA: Strings Pattern Matching
    What is Pattern Matching? Pattern matching is a fundamental problem in computer science that is employed in a…


    5 min





  106. Problems based on Pattern Matching
    In the previous post, we discussed various pattern-matching algorithms, let us now see a few problems based on…


    2 min





  107. 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…


    1 min