
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Explore Python's origins by van Rossum in 1991, its general-purpose design, and its easy, readable syntax. See how it powers AI, data science, and web development with Instagram and Google.
Learn how to check if Python is installed using the command prompt, install Python from python.org, and add Python to path, then pick a suitable IDE.
Understand what an integrated development environment (IDE) is and how it helps write and debug Python and other languages using tools like VSCode or PyCharm.
Explore how Python variables act as containers that store and change values, and learn declaring, initializing, printing, and handling undefined variables and the global versus local scope.
In Python, declare and initialize a variable on the same line using a = value. This follows naming rules and contrasts with C++, where declaration and initialization occur on lines.
Learn Python variable naming rules: no spaces, underscores or camel case, avoid starting with digits, and respect case sensitivity. Avoid reserved words and syntax errors.
Explore Python data types by categorizing numeric types (integer, float, complex), strings (alphanumeric and special characters), booleans, and date types, and learn how to declare data to the interpreter.
Explore mutable and immutable data types in Python, including lists, dictionaries, integers, floats, strings, and tuples, and compare sequence versus non-sequence types like sets.
Explore Python lists as a mutable, heterogeneous, ordered data type that serves as an array alternative. Learn indexing, nesting, concatenation (+), repetition (*), membership (in, not in), and iteration.
Explore the tuple data structure in Python, covering immutability, indexing, and nested tuples, and demonstrate concatenation, repetition, membership tests, and iteration alongside tuple vs list differences.
Explore the dictionary data structure in Python, storing data as key-value pairs in curly braces. Access values by key, and create, print, and iterate dictionaries; duplicates are not allowed.
Master the python set data structure: an unordered, mutable collection of immutable elements that supports union, intersection, difference, and symmetric difference, with creation via set() and no indexing.
Explore Python decision making structures, including if, else, and nested if-else statements, with examples like age checks, day-based messages, admission eligibility, and even-number validation.
Explore the Python if statement as a decision making structure, using a condition to control execution with colon and indentation. See examples of relational operators, equality checks, and true/false paths.
Explore how the python if else statement uses a condition to execute different statements when true or false, with syntax, else blocks, and practical examples that display messages.
Explore nested if statements, where one if block sits inside another, and learn how conditions are evaluated sequentially with examples in Visual Studio Code using Python and modulus operations.
Explore the elif decision making structure in Python, using it between if and else to handle multiple conditions, illustrated with a vowel versus not vowel example.
Explore the basics of functions in Python, including defining with def, creating and calling functions, and using parameters and arguments to pass data and enable code reuse.
Explore for loop in python to iterate over iterable objects like lists, tuples, dictionaries, and strings, using range with start, stop, and step to generate sequences and print results.
Explore the while loop in Python to repeat statements while a condition is true. Master initialization, condition checks, loop body, and increment or decrement with addition assignments.
solve problem 1 by printing numbers and their squares using a simple Python algorithm, and complete the assignment to include cubes in the layout.
Solve problem two by computing the circle area using pi r^2 in Python, taking radius input from the user. The lesson also introduces a rectangle area assignment.
Learn to collect a name and age from the user with Python's input function and display a formatted message using print, showing 'Hi {name}, your age is {age}'.
Take the user’s name and age via Python input, convert age to integer, and determine voting eligibility with an 18 cutoff, displaying either participation or years to wait.
Learn to write a Python program that reads two numbers, converts them to integers, and displays their addition, subtraction, multiplication, division, and modulus.
Learn how to compute the union of two and three Python sets using the union method, with practical examples and step-by-step algorithms.
Learn to compute the intersection of two sets in Python using a simple algorithm. Practice problem seven from 300+ Python exercises to reinforce set operations and coding clarity.
Explore problem 8: learn to compute the difference of two sets in Python using A minus B and B minus A, with an algorithm, examples, and a symmetric difference assignment.
Prompt the user for a number with input, convert it to int, and generate a multiplication table from 1 to 10 using a for loop and print the results.
Practice a python program that reads six subject marks from the user, computes the total, average, and percentage, and displays the results.
Learn to get two numbers from the user and display the maximum using two methods. Implement if statements or a shortcut maximum method in Python, and preview the three-number assignment.
learn how to solve problem 12 by using nested for loops in Python to print a five-line triangular pattern, with outer and inner loops controlling lines and numbers.
Present problem 13 by building a Python program that prompts for a password and validates it contains alphabetic and numeric characters, without whitespace or special characters.
Get six numbers from the user using input, convert to int, and store them in a list. Then sum the list with a for loop and display the total.
Learn to get six numbers from the user, store them in a list, display it, then clear the list and show an empty list; also practice clearing a tuple.
Learn to perform all compound assignment operations on an integer in Python, including addition, subtraction, multiplication, division, and modulus, then sum and display the results.
This lecture introduces problem 17 from 300+ Python exercises, guiding students to print a formatted message using escape sequences and tabs, with a step-by-step algorithm, solution, and assignments.
Learn to use Python dictionaries to store name, address, and contact, display the data, and update the contact number in problem 18, with step-by-step guidance and runtime input ideas.
Build a Python program to get three numbers from the user, apply the given equation, and display the result, including the algorithm and a solution for problem 19.
Learn to write a Python program that collects five numbers from the user, stores them in an array, prints them, sums them, and finds the maximum.
Prompt five numbers from the user, store them in an array, and compute the maximum using a loop and the input function, then display the result.
Learn to build a Python program that reads a character and determines if it is a vowel or consonant using if/else and the or operator, and indicate numbers.
Create a Python program that asks for a weekday name and prints a holiday message using if statements, handling case-insensitive input and noting Sunday (and Friday in the assignment).
Explore problem 24 by building a Python program that reads two numbers and an arithmetic operator, converts inputs, and performs addition, subtraction, multiplication, division, or modulus, displaying the result.
Write a Python program to get student marks via input, convert the input to integer, and display 'you are failed' if marks are below 40, otherwise 'you pass'.
Write a Python program that prompts for a number, uses modulus two to determine even or odd, and prints the result; the lesson also covers displaying the number's square.
Create a Python program that prompts for five years, stores them in an array, and displays only the leap years by checking divisibility by four.
Learn to write a Python program that reads a number, computes its square, and displays the result using input and int conversion.
Learn to build a Python program that reads a number from the user, converts it to an integer, and reports whether it is positive, negative, or zero using if-else logic.
Write a Python program that gets a number from the user, checks divisibility by two and three, and displays whether the number is divisible by both.
Explore problem 31 by writing a Python program that converts input marks to integers and assigns grades using an if/elif chain, covering A-plus, A, B, C, and fail.
Solve problem 32 by writing a Python program that reads two numbers, converts input to int, passes them to a function using def, and prints the maximum.
Store hardcoded color names in a list, count them with the length function, and display the total; later, enable user input to insert colors and count them.
Write a Python program to collect five color names from the user into a list using a for loop, display it, then remove the last color and display updated list.
Learn to write a Python program that collects ten student names via a loop, stores them in a list, and displays them in descending order.
Learn how to write a Python program that reads a sentence, capitalizes only the first character and lowers the rest, and appends a period before displaying the result.
Learn to build a Python program that reads a number with input(), converts it to int, and outputs its cube, with examples like 3 yields 27 and 2 yields 8.
Explore problem 38 by building a Python program that converts a radian input to degrees using built-in math functions and prints the resulting degree value.
Write a Python program to collect five numbers from the user, store them in a list, pass the list to a function, and display the sum and product.
This lecture demonstrates a Python program that prompts for a username, validates alphanumeric input with isalnum, passes it to a function, and displays it, with a length greater than eight.
Create a Python program that prompts for an angle, imports the math library, computes sine and cosine in radians, and displays the results plus conversion to degrees in the assignment.
Solve problem 42 by writing a Python program that generates numbers 1 to 10, computes their squares and cubes, and displays the sum with clear column formatting.
Write a Python program that asks for a starting and ending number and prints all numbers from start to end inclusive using range(start, end+1); demonstrates input and int conversion.
Write a Python program that takes a starting large number and an ending lower number, prints numbers in descending order using a range, and also computes their sum.
Explore problem 45: write a Python program to display odd numbers from 1 to 30 using a for loop and a modulus check; learn an alternative stepwise approach.
Practice a Python program that collects a user name and five subject marks, stores them in an array, then computes and displays the total and each subject.
Explore problem 47 by writing a Python program that reads two numbers, computes their squares, adds them, and displays the total to the user.
Swap two user-provided numbers in Python by storing them as a and b, using a temporary variable, and display their values before and after for problem 48.
Learn to convert hours to seconds by reading user input, converting to int or float, and multiplying by 3600 to obtain seconds in Python.
Write a Python program to find area of a triangle using base multiplied by height divided by two, with user input and printed result.
Write a Python program to find the number of days between two dates provided by the user, using a defined date format and date objects.
Explore problem 52 by writing a Python program that reads a sentence from the user and reverses it using a character loop and string concatenation, then displays the result.
This lecture explains a Python program that reads user age and converts it to seconds, using seconds per hour and per year, with integer and float inputs.
Explore problem 54 by writing a Python prompt to input a number, convert it to integer, and compute its factorial using the built-in math.factorial, then display the result.
Write a Python program that asks the user to display the date and time. Use a function and the date time module to show date when the user answers yes.
this lecture covers problem 56, guiding you to build a Python percentage calculator that inputs an amount and a percentage, computes the result, and includes a decimal-to-binary conversion assignment.
Learn to build a Python average calculator by collecting terms, summing values, and dividing by total terms, with a practical binary-to-decimal conversion calculator as an assignment.
Write a Python program that reads a user's first and last name, capitalizes both, concatenates them with a space, and displays the full name.
Create a Python program to obtain a user bio and count characters and words. Use the split method to separate words and display the totals.
Learn how to build a Python program that inputs five author names with their book names, stores them in a dictionary, and prints the last author and book.
Create a Python program that reads memory in GB from the user, converts it to bytes using a formula, and displays the result, with verification via an online tool.
Presented a Python solution to problem 62, collecting student details, including full name, father name, CNIC, age, and contact, and displaying them in a formatted, tabbed output.
learn to write a python program to find the maximum number in a list using a function. collect ten numbers, build the list, and call the built-in max.
Explore problem 64 in python by obtaining student marks and applying sequential if-elif conditions to decide scholarships or fee deductions at thresholds like 1000, 900, 800, and 600.
Learn to solve problem 65 with Python by using a function to compute the area and parameter of a square from its length, then display results.
Learn to write a Python program that creates a list, passes it to a function, reverses the list, and displays the reversed result; includes a prime number display task.
Develop a Python program to sum two positive numbers under 50 with input validation, display result, and handle invalid inputs by prompting that numbers must be positive and under 50.
Learn to collect six student identity numbers, store them in a list, and display them in descending order using the list sort with reverse.
Learn to create a text file, write a name and age, then read an existing file to add two numbers input by the user and display the sum.
Develop a Python program to detect duplication of student IDs in a list and display a duplication message. Create and use a function that counts items to enforce unique insertions.
Count occurrences of a specific word or character in a user-provided sentence using Python, display the frequency, and practice replacement of words or characters as a follow-up exercise.
Solve problem 72 by building a Python program that shuffles a list of user-input hex color codes, using the random shuffle method and displaying the result, with an ascending/descending assignment.
Explore problem 73 by building a Python program that reads a sentence, displays its last character via slicing, and prints every character on a new line.
This lecture shows how to write a Python program to find the second position in a student marks list, and display the corresponding marks after sorting ascending or descending.
Showcase a Python approach to cloning a ten-color list by copying user-input colors with the copy method and displaying both the original and copied lists to prove independence.
Demonstrates how to solve problem 76 by writing a Python program that displays numbers divisible by three from a list, using a for loop and modulo.
Explain problem 77: write a Python program to check if the tuple's first and last elements match using index 0 and -1, with an if statement and a five-name assignment.
Write a Python program for problem 78 that reads a number, converts it to integer, and prints its previous and next numbers using simple and arithmetic-assignment methods with examples.
Learn to write a Python program that prints the first and last characters of an input string, using indices for the first character and minus one for the last.
Tackle problem 80 by building a Python program that prints characters from a string at odd indices, using a loop and modulus to filter odd positions.
Explain problem 81: write a Python program to sum the first and last elements of a list, and illustrate the algorithm with a simple solution.
Explore problem 82 by writing a Python program that collects numbers between 10 and 100 divisible by five and seven into a new list, printing results like 35 and 70.
Explore problem 83 in Python exercises: write a Python program to extract names from a list that start with lowercase f, using a for loop and startswith for case sensitivity.
Describe problem 84 by building a Python program that gets a name from the user, checks uppercase, converts to uppercase if needed, and displays the result.
Learn to solve problem 85 by building a Python list of names and displaying those ending with a specific suffix using the endswith method.
Learners explore how to write a Python program that gets a string and a set of characters from the user, uses membership to display yes or no.
Solve Python problem 87 by taking a user sentence and displaying only the first ten characters using slicing. Learn zero-based indexing and how to slice strings.
Learn to write a Python program that reads a number from the user and adds half of that number to it, producing outputs like 10 becomes 15.
Solve problem 89 by writing a Python program that generates numbers 0 to 20, selects even and odd values, sums each group, and displays the total.
explore solving problem 90 by collecting ten student ages into a list and displaying only ages between 15 and 19, using a Python for loop.
Solve this Python problem to find density by inputting mass in grams and volume in cubic centimeters, using density = mass/volume, and display the result.
Compute the ceiling of a number in python by taking user input, importing the math library, and using the ceiling function, with notes on floor as well.
Solve problem 93 by computing acceleration from change in velocity and time in seconds using a Python program; input initial and final velocity, calculate delta velocity, and display the acceleration.
Learn to implement problem 94's Python program that computes force using mass and acceleration. Relate it to Newton's second law by calculating force from mass and acceleration and display result.
explore problem 95 by building a Python program that reads a user-provided number and prints its multiplication table in reverse order from 10 to 1, showing each expression.
Explore problem 96 by collecting ten user inputs of int, float, and string, store them in a list, and count each data type.
this lecture covers problem 97: find the middle element of a list using its length and an integer index, with a seven-item example and a square-root assignment.
Write a Python program that solves problem 99 by collecting ten user-entered words, stores only uppercase words in a list, and shows an error for lowercase input.
Write a Python program to sum list items greater than five and less than ten, using a created list, iteration, and a conditional check; the example yields 24.
Learn to write a python program for problem 101 that displays student names except those starting with the letter f, by creating a list and filtering with the not operator.
This lecture teaches solving problem 102 by sorting a student name list in ascending order and filtering names with exactly five characters using a Python program.
Explore intermediate Python tasks by prompting for a file name, extracting and displaying its extension with the os library, and validating extensions with examples.
Develop a Python program that reads a Fahrenheit temperature, converts it to Celsius and Kelvin, and prints the results with basic input handling and formatting.
Write a Python program to calculate the circumference and area of a circle, prompting the user for radius, converting it to float, and computing with pi, then displaying the results.
Write a python program that prompts for a password containing both letters and digits, enforces length between 8 and 20 characters, and displays error or success messages.
Learn to build a Python program that stores student names in a list, allows deleting a student on demand, and displays the updated list before and after removal.
Update a specific key in a Python dictionary by obtaining the old and new keys from user input, then update and delete the old key to reflect changes.
Learn to build a Python program that reads an email from the user and validates its format with a regular expression, displaying valid or invalid results.
Learn to write a Python program that reverses a substring of a user string using slicing, then displays the original and reversed substrings and handles input.
Sort a Python dictionary by keys using the sorted method, display the updates, and then extend to sorting by value as an assignment.
Learn to compute the gravitational force between two masses using F = G m1 m2 / r^2, with user inputs m1, m2, distance r, and a fixed gravitational constant G.
Develop a Python program that reads a length in millimeters from the user and converts it to meters and kilometers, displaying the results as floats.
Write a python program to find the most frequent element in a list using the statistics mode function and display it, then practice finding the least frequent element.
Explore Python object oriented programming by building a class with parameterized and non parameterized constructors, creating objects to display name and user ID, and implementing a destructor.
Create a Python class for a student with name and ID, implement methods to get data from the user and display them, and demonstrate inheritance in object oriented programming.
Write a Python program that prompts the user for a number, then displays the squares of its previous and next numbers. The lecture covers input, integer conversion, and calculations.
Count a specific item in a nested list with Python by converting user input to an integer, tallying occurrences, and displaying the result.
Learn to write a Python program that validates a word containing both upper and lower case letters and converts between upper and lower cases, using regular expressions.
Count the total number of lists in a nested Python list by checking each item’s type and incrementing a counter, and learn to access elements.
Create a Python program to build a nested list, display it to the user, and iterate over the items to show how to access nested elements by index starting from zero. Follow the algorithm steps to identify inner lists, print specific inner items and boolean values from the nested structure, and practice solving the intermediate problem 19 with code.
Learn how to write a Python program that accesses multiple list elements using a user-defined start and end index, employing the slice operation to display a range of items.
Practice python list comprehension by reading five numbers from the user, storing them in a list, and displaying each number raised to the power of three.
Explore problem 22 by building a master Python dictionary with nested inner dictionaries, then iterating and accessing items such as name and age.
Practice writing a Python program that prints dictionary items line by line with a single tab between key and value. Iterate items, format with tab, and uppercase dictionary values.
Explore filtering a dictionary in Python by odd keys, iterating items, and displaying corresponding values using the modulus check.
Learn to write a Python program that sums the lengths of all string keys in a dictionary, using a color-key example. Iterate through keys, accumulate lengths, and display the total.
Convert a dictionary's keys and values into two separate lists by iterating the dictionary to collect keys in one list and values in another, then display both lists.
Write a Python program using numpy to generate an n by n identity matrix with numpy's identity method and display it.
Learn to write a Python program that finds the maximum key in a numeric-key dictionary by extracting keys, sorting, and selecting the last element, with a note on maximum value.
Update a Python dictionary interactively by prompting for a key and its new value, converting the key to an integer when needed, and displaying the updated dictionary.
Learn to write a Python program that creates a dictionary with numeric keys and values, sums the keys, computes the product of the values, and displays the results.
Demonstrates building a Python dictionary and filtering values that contain vowels with a membership test, plus an assignment to read ten numbers and output min, max, and sum.
Learn to write a Python NumPy program that creates a one-dimensional array, checks elements for NaN with isnan, and handles infinity as NaN.
Create a one-dimensional NumPy array of zeros with a length from user input and print the result, importing NumPy as np and using zeros.
Learn to implement an object oriented solution that gets a number from the user and displays its multiplication table via a class with input and display methods.
Practice adding two arrays with numpy in python, read and display arrays, and show their elementwise sum for problem 35 with a solution.
explains how to use numpy to create a zero-filled array with the same shape and data type as an existing array, including a two-dimensional example and a practical task.
Apply NumPy to create a zero matrix with a user supplied shape, display the result, and complete the assignment to build a ones filled array.
Learn to create a one dimensional numpy array by prompting user input in a for loop, initializing with zeros, updating with integers, and displaying the final array.
Lecture demonstrates solving problem 39: create a 3x3 two-dimensional NumPy array, prompt the user for a multiplier, multiply every element by that number, and display the resulting matrix.
Create and display a one-dimensional array with numpy, then reverse its elements using numpy.flip and print the results. Covers importing numpy as np and demonstrates the float-to-integer conversion task.
Convert a one dimensional numpy array to a list using array.tolist(), then compare types and display both the array and the list to demonstrate Python list operations and conversions.
Learn to convert a zero and one numpy array to boolean values using the astype method, turning 1 into true and 0 into false, with one-dimensional and two-dimensional examples.
Master intermediate problem 43 by creating a one-dimensional numpy array, saving it to a text file, and displaying the result both in the console and in the file.
Learn to create a 4x4 zero matrix with NumPy and set its main diagonal to 6789, resulting in a diagonal matrix with zeros off the diagonal.
Practice checking Python identifiers with the isidentifier method by validating user input and displaying clear valid or invalid messages according to identifier rules.
Learn to create a new dictionary from an existing one using dictionary comprehension, mapping each key to the length of that key, and print the resulting lengths.
Write a Python program to create a dictionary from a list using dictionary comprehension, mapping each number key to its square value.
Create a Python program that builds a new list from an existing list with numbers less than 20 and greater than five, using list comprehension and then sums the numbers.
Determine uppercase words from an existing list using a python list comprehension, display the results, and note the assignment to also extract lowercase words.
In this intermediate problem, write a Python program to create a set from user input and display only the even numbers using a modulus check.
practice problem 51 guides you to create and display a 3x4x4 three-dimensional array in python using numpy, constructing nested matrices and printing the result.
Explore solving intermediate problem 52 in Python by creating a one-dimensional array, printing it, and repeating its contents a user-defined number of times, then converting between array, list, and tuple.
Learn to replace odd numbers in a Python one-dimensional array with minus one using numpy, by applying modulus by two and updating elements, with a reshape array assignment.
Learn to perform elementwise addition, subtraction, multiplication, and division on two arrays using numpy, display the results, and understand the basic array operations demonstrated in problem 54.
Learn to append an integer to an existing Python array using the array module, display the array before and after the update, and handle user input in a simple intermediate exercise.
Develop a Python program to display each list element with its total occurrences, using list comprehension and counting techniques, while eliminating duplicate outputs.
Convert a numpy array to a pandas series, display the resulting series to the user, and observe the zero-based index and 32-bit integer data type.
Solve problem 58 by using Python, pandas, and NumPy to create a two-dimensional array, compute its transpose with built-in methods, and display the result.
Learn to write a Python program that uses list comprehension to filter five user-input numbers for those divisible by four or five, then print the filtered list with example outcomes.
Convert a float array to integers in Python by casting each element, store results in a new array, and display the converted integer values for user verification.
Learn to create an Excel file with Python using the Excel writer library, installing, importing, and writing data to cells before saving. An assignment asks you to use another library.
Install a python excel library, create a workbook and worksheet, read a cell or range, display data, close the workbook, and complete assignment to use a library other than xlwings.
Import accelerator module, create a workbook and worksheet, write cell values, and save the Excel file with Python's Excel Writer library.
Learn how to insert a user-provided prefix before every element of a list in Python, using list creation, input handling, and list comprehension to build and display the new list.
Learn to read an Excel file with pandas, extract specific columns or a set of columns using usecols, display and save the results, and append data to a new file.
Learn to write a Python program using pandas to perform arithmetic on an Excel file, including sum, product, count, and mean for a specific column.
Learn to read an Excel file with pandas, select a specific column, and compute its maximum and minimum values, demonstrated in code with an assignment to copy data between sheets.
This lecture explains problem 68 by writing a Python program that converts a list of integers into a list of 'positive' or 'negative' using list comprehension, and adds zero case.
count the number of instances of a Python class by incrementing a counter x in the constructor, creating objects, and displaying the final total.
Read a CSV file into a list of lists in Python by importing csv, opening the file in read mode, and using the csv reader to display each row.
Learn to multiply a user-entered number with every element of a list in Python using list comprehension, creating and displaying a new list of results.
learn to update a csv cell in python using pandas by loading a csv, selecting by row index and column, applying a new value, and saving the updated file.
solve intermediate python problem 73: input ten numbers, store them in a list, and join into a single number; includes code demonstration and csv row deletion task.
Get column names from a csv file using Python by reading the file with pandas and listing its columns for user display.
Learn to convert a JSON string into a Python dictionary using the JSON library, demonstrate loading JSON data as a Python object, and verify types in an intermediate exercise.
Explore using the OS module and platform module to query the current operating system, retrieve the system name and release, and display these details in a Python program.
Learn to build a desktop Python program that creates a window, sets its title, and specifies width and height via a simple main loop for desktop applications.
Create desktop Python window and display text with a label widget. Import a module, create the window, set the title, pack the label, run the main loop, and customize colors.
Create a desktop Python program that builds a resizable window, sets geometry, assigns a title, and demonstrates configurable horizontal and vertical resizing with boolean flags.
Create a desktop Python window by importing the module, setting geometry and title, and disabling resize with resizable(False, False); then add a button and run the main loop.
Build a desktop Python app with a window and a button; wire a function to the button's command so clicks print to the console, and complete a two-number sum assignment.
Build an intermediate Python program with a window containing a button that closes the window on click and shows a message box, as described in intermediate problem 82.
Learn to create a desktop Python program that shows an image inside a clickable button by importing a module, creating a window, and setting a background image.
Learn to build a Python GUI that creates checkboxes in a window, enabling multiple selections, packing widgets, and displaying results, with options to change background color, cursor, and border.
Create a desktop python program that inserts an image into a window, using a label for the image, a button to trigger the action when clicked, and a window size.
Build a Python tkinter gui that collects first and last names via entry widgets, computes the full name, and displays it in a label when a button is pressed.
Solve problem 87 from 300+ Python exercises by building a simple graphical user interface that takes two numbers, computes their remainder with the modulus operator, and displays the result.
Build a desktop Python app with a window and entry box that prompts the user for a single character and reports whether it is a vowel or a consonant.
Learn to write a Python program that checks if a user input starts and ends with a number, with optional letters in between, using a regular expression.
This lecture teaches a desktop Python program with a graphical user interface to read a year, check leap year status, and apply an object-oriented approach.
Learn to write a Python program that finds an array's size in bytes by importing the array module, creating an array, and computing length times itemsize, using object oriented programming.
Count occurrences of a user-provided element in an existing integer array using Python's array module and the count method. The lesson also outlines an object oriented approach to the same task.
Display odd numbers from an array in Python by importing array module and iterating through elements. Use modulus to identify odd values and prepare for an object oriented programming extension.
This lecture teaches removing a specific array element in Python (problem 94): import array, display, obtain a 1-based position, adjust to zero-based index, use pop, and extend to object-oriented programming.
Learners explore the intermediate problem 95 in Python, reversing an array with a reverse method, displaying the original and reversed arrays, and implementing the solution with object oriented programming.
Learn two Python methods to find the maximum in an array, use the max() function or a manual iteration, along with an assignment for finding the minimum.
address problem 97 by creating a Python class with methods to get a number and check divisibility by five, illustrating object-oriented programming and result display.
Build a class in python that gets a number from the user and checks if it is a multiple of two and three, using object oriented programming, problem 98.
Solve intermediate problem 99 by writing a Python program that reads five numbers, sums them, and computes their average using a simple algorithm, with an object-oriented approach.
Learn to create a runtime Python list, display its elements, and determine max and min values using object oriented and procedural programming.
Create a Python program that reads an even number of elements from the user, then builds a new list by adding adjacent elements (pairwise sums), and demonstrates an object-oriented extension.
Explore object oriented programming by defining objects with properties and methods, distinguishing classes and objects, and introducing encapsulation, inheritance, polymorphism, abstraction, and binding.
Define a Python class as a blueprint for objects, with data members and methods, then create objects and access attributes using dot notation.
Explore objects in Python as instances of a class with attributes and methods. Create and access objects using dot notation, and learn about parameterized constructors.
Learn how data members (variables) and member functions (methods) define a class, create objects, and access or update data using an object and self in a student example.
Explore how the self keyword in Python’s object oriented programming references the current instance, initializes and accesses instance variables, and calls methods to manage object state.
Explore constructor and destructor in Python's object-oriented programming, showing how __init__ auto-calls on object creation and __del__ triggers at garbage collection, with non-parameterized and parameterized constructors.
Demonstrate how Python calls __init__ on object creation and __del__ when an object is destroyed, using an example class to tie constructor and destructor to memory deallocation.
Explore inheritance in Python's object oriented programming, showing how a child class inherits attributes and methods from a base class and adds or overrides behavior.
Learn how private, protected, and public access specifiers control data and method visibility in object-oriented programming. See Python examples and practical code demonstrations to reinforce concepts.
Learn protected and public access in Python classes, using underscore for protected members and accessing them within and in subclasses; public members have no underscore and are accessed directly.
Learn regular expressions, or regex, as patterns to find emails, URLs, numbers, and file names in text. Use Python's re module for search, match, split, and sub.
Explore how regular expression in Python enables data validation, including emails, URLs, usernames, and phone numbers, plus search and replace, web scraping, and text processing across languages.
Explore special sequences in regex for Python, including backslash d and D, whitespace and non whitespace, dot, caret, end anchors, case-insensitive matching, and word boundaries.
Explore Python regular expressions, including d and D sequences and quantifiers, apply findall to extract digits and non-digits, and practice with examples in VSCode.
Learn how word characters work in regex: lowercase w matches alphanumeric and underscore, uppercase W matches non-word characters, with Python examples and plus quantifiers.
Explain how the lowercase s matches white space characters (spaces, tabs, and newlines) and how the uppercase S negates them, with examples and quantifier usage.
Explore how the dot pattern in regex matches any character except new line, and apply quantifiers to control repetitions, with practical VS Code examples.
Explore regex caret and dollar symbols to match string starts and ends, with VSCode examples like starts with hello and ends with a word, plus case-insensitive matching with ?i.
Learn how to use word boundary in regex (\\b) to match whole words, define boundaries between word and non word characters, and apply case sensitivity or ignore case in Python.
Explore sets in regular expressions using square brackets to match character sets, ranges, and alphanumeric classes, with not operators and escapes like \d, \w, and \s in Python examples.
Discover how to use the findall function in Python regex to extract all matches from a string, including digits and specific words with boundaries, and detect emails.
Learn how to use Python's re.search to find the first occurrence of a pattern in a string, returning a match object and enabling group extraction, start indices, and boundary checks.
Learn to split strings using Python's regular expression split, specifying patterns, max splits, and optional flags, with practical examples on whitespace, comma, and dot delimiters.
Learn how the sub function in Python's regular expression module searches for a pattern and replaces it in a string, with count-limited examples of replacing words and symbols.
This lecture introduces solving quadratic equations in Python using the quadratic formula, guiding students to input a, b, c, compute R, and determine two roots, one root, or no roots.
Develop a Python program to read a paragraph from the user and compute total characters with spaces, characters without spaces, total words, and total spaces, displaying all results.
Develop a Python program that generates a random number between start and end, compares it with a user-provided required number, and displays a message when they match.
Explore converting a pandas Series to a Python list, inspect types and items, and apply list operations to a data analytics task.
Learn to compute the union, intersection, and difference of two sets in Python by taking user input, using built-in methods, and displaying the results.
Learn to build a Python web app with Django by creating a helloworld page, configuring templates, views, and URLs, then run the server and plan a budgeting calculator with CSS.
Write a Python program to count vowels in a user input sentence or word by iterating characters and checking for vowels (case-insensitive), and display the total.
Explore building a Django web application that takes two numbers from the user via a form, performs arithmetic operations, and renders results with a view and template.
Explore solving a Python problem that builds a list from five user inputs and displays items while excluding the first and last elements and any item with five characters.
Explore solving problem ten by performing basic arithmetic operations on two pandas series in Python, including addition, subtraction, multiplication, and division, with code demonstrations.
Learn to build a Django web application that creates a student database table, collects student information via a form, migrates models, and displays stored data on a template.
Install Django, create a project and app, migrate, create a super user to access the admin area, then manage users and permissions.
Get five numbers from user, store them in a list, convert to a pandas series, and change the index to letters A, B, C, D, E for problem 13's solution.
Build a Python Django web app with home, contact us, and about us pages by creating a project and app, configuring settings and templates, and wiring views and URLs.
Write a Python program to compute keyword density in a paragraph for seo, counting the keyword occurrences and total words, then display the percentage.
Learn to create and display a pandas series, append new data to update the series, and save numbers generated from 200 to 100 to a csv file using Python.
Build color code dictionary from user input, convert it to a pandas series, display it, and outline a web app to store five subject marks with total, average, and percentage.
Learn to write a Python program that uses the os library to get and print the current user on your computer, as shown in complex problem 18.
Learn to build a Python program that prompts for a file name, checks for spaces by iterating characters, and replaces spaces with dots when needed, in 300+ Python Exercises course.
Build a Django web app to display all users in a table via a home view and template, using SQL to fetch data, with a superuser and admin access.
Learn to build a Django web app in Python that collects ten product prices, computes total with 5% or 6% discounts, and displays the net total using templates and views.
Count the total number of uppercase and lowercase letters in a user-provided string using a Python program. Iterate over characters, increment uppercase and lowercase counters, and print the results.
Learn to build a Python program that asks the user whether to generate an OTP, collects the desired length, and produces a random alphanumeric code using string and random.
Explore how to display an image using OpenCV in Python by importing cv2, reading an image file, and showing it in a window with a title and a waitKey call.
Develop a Python program that generates a strong password of user-specified length using the string and random modules, combining uppercase, lowercase, digits, and punctuation.
Learn how to write a Python program to compute an image's resolution by reading the image, extracting height and width with cv2, and printing width, height, and their product.
Learn how to blur an image with Python using OpenCV in a web application context. Read an image, apply cv2.blur, and display the original and blurred results.
Learn to rotate an image in Python by reading an image, inputting an angle, and displaying the rotated image, with examples at 90, 50, and 180 degrees.
Learn to load a csv file with pandas, print its shape (rows and columns), and display all data as a string, including the header and three data rows.
Learn to build a django web app that takes a user sentence, converts it to uppercase, and displays length and total spaces using forms and templates.
Create a pandas series and then derive a subset series with a condition (elements less than a threshold) to illustrate the complex problem 31 solution, and print the resulting elements.
Learn to build a Django user registration, login, and logout app by creating a project, app, templates, forms, views, and URLs, with a single solution for problems 32 and 33.
Explore building a Django web app that handles user registration, login, and logout, with a shared project for problems 32 and 33, including forms, views, templates, and basic authentication.
Practice building a Python regex to validate a single alphabetic character within a specified range using re, by prompting the user and printing matching or not matching.
Solve problem 35 by writing a Python program that reads input and uses a regular expression to match F followed by zero or more z, ending with Z, and report.
Develop a Python solution for problem 36 that reads a sentence and a set of characters, then uses a regular expression to check the sentence ends with a character.
Learn to write a Python program that finds a sequence with uppercase at the start and lowercase at the end using a regex pattern.
Learn Python regex by building a program that matches strings starting with m and ending with 0, with any characters in between, using anchors and optionality.
This lecture presents problem 39: write a Python program to check if the input string starts with a word character (letters, digits, or underscore) using a regex.
Learn to build a Python program using a regular expression to check if a user-entered word contains a specific character and display a matching message for problem 40.
Write a Python program that matches a string containing uppercase then lowercase then digits and underscores, ignoring whitespace and punctuation, by using a regex pattern.
Explore problem 42 by building a Python program that uses a regex pattern to ensure a string starts with a digit 0-9 and display the result.
Develop a Python regex solution that validates strings ending with a digit 0 to 5 and matches a number followed by an underscore at the end.
Learn to display an image in Python using the Pillow (PIL) library by importing, opening the image, and showing it, then explore simple image operations.
Learn to write text on a picture with Python by reading an image, using image draw to place text with color and position, and then save or show the result.
Develop a Python solution to determine if a user password is strong or weak using a regex-based pattern, validating lowercase, uppercase, digits, and special characters.
Explore how to build a Python regular expression that matches a string with an optional prefix, a number, an underscore, and an uppercase letter, using user input and result display.
Explore creating an empty Python class with the pass keyword, observe syntax behavior and object creation, and tackle an assignment to add data members to a simple class.
This lecture demonstrates a Python linear search on a list, reading user input, iterating through elements, and reporting found index or a not found message, with list versus array notes.
This lecture shows how to write a python program to play a sound using play sound library, including importing the play_sound method and an audio file, and displaying completion message.
Practice problem 51 guides you to build a Python program that plays an audio file using a library, by importing audio segment and the play method.
Open a Python program to open a url using urllib.request, print the status code, and verify that 200 means the url opened successfully. Use an example like google.com to illustrate.
Learn to extract a web page's html with Python by importing requests, fetching a url, and printing the page text as part of complex problem 53.
Develop a Python program to display the title of any webpage via web scraping using BeautifulSoup and requests, by reading a URL and extracting the title.
Explore problem 55 by building a Python program that prints the memory usage of an object, using a system library to get the size of user-provided data in bytes.
Write a python program to obtain a file's creation date and time (and modification time) using os and time, read and display the timestamps.
Learn to read from one file and write to another in Python, and skip a user-specified string during transfer.
Write a Python program to save a dictionary to a text file. Open the file in write mode, iterate dictionary items, convert to string, write, and close.
Explore problem 59 by writing a Python program that reads a file, uses getsize to determine its size in bytes, and prints result; include a 3 to 5 MB check.
Learn to write a Python program that reads a specific line from a text file by prompting for a line number and printing that line.
Build a Django web app in Python to compute the union and intersection of two sets, displaying results via a template.
Build a Python web app with Django to collect user age and determine voting eligibility using forms and post requests, then apply an admission check with age and marks.
Build a Django web app in Python to calculate a circle’s area from a user-provided radius, using templates, forms, and a view to render and display the result.
Presents a Python-based Django web app that takes a user name from a form, encrypts it with a crypto library, and displays both the original and encrypted name with decryption.
Write a python program that reads a word from the user, converts it to lowercase, and checks for vowels; save to a text file only if none are present.
Develop a Python program for complex problem 66 that lets users display, insert, and update list items via a numeric menu, with a fourth option to delete items.
Write a Python program that prompts the user for a string and uses a regular expression to find digit sequences of length five or more, displaying matches or not.
Create a Python program that reads a number, prints its multiplication table, writes the table to a text file, and computes the product of the results.
Learn to read ten numbers from the user, store them in a list, compute sum, product, min, max, and first/last elements, and save results to a Python text file.
Practice python exercises by writing a paragraph to a text file and then searching for a user-provided word within that file. Display messages based on whether the word is found.
Learn to build a Python web application using Django that collects six subject marks, computes total and average, and displays the results through a Django template.
Create a Python web app that collects two numbers, computes their squares, adds them, and shows the cube of the sum; later convert the project to a desktop app.
Build a Django web app in Python that takes a user number, adds half of it, and displays the result; learn forms, views, and templates to implement this calculation.
build a python web app to calculate acceleration from velocity and time using Django; enter velocity and time, app returns acceleration in meters per second squared.
Build a Python web application to compute the force on an object from mass and acceleration, using Django forms, views, and templates, and display the result in newtons.
The lecture demonstrates building a Python Django web app that collects five user numbers, filters those greater than five and less than ten, and displays addition result in a template.
Build a Python Django web app to collect five student names via a form and display the ones that do not start with a double character.
Build a Django web app in Python to store and sort store names ascending, and display only five-character names using forms, views, templates, and runserver.
Explore solving problem 79 by building a Python Django web app that collects five authors and their books via a form and displays them.
Build a Python web app that collects user words and displays only uppercase entries using forms, views, and a list comprehension, demonstrating problem 80’s solution.
Create a python desktop window application that asks for two numbers and finds max and min, showing whether they are equal or positive or negative in a window.
Create a desktop Python app with a GUI that takes a user string and displays total words, spaces, and characters (including spaces), using an entry field and a button.
Build a desktop Python app that prompts the user for a number and displays its multiplication table up to ten in a graphical user interface window.
Build a desktop application that displays different message boxes in yes no mode, including ask, retry, and exit prompts, with examples and an assignment to implement similar dialogs in Django.
Learn to build a desktop app that displays various message boxes: error, information, and warning, using a basic window and message box calls, then extend to a Django web app.
Create a Python desktop app that prompts for an integer via a dialog, prints its square to the console, and shows the result in the window, with non-integer input handling.
Create a Python desktop app that prompts the user for name and age via a dialog box and displays the result in a GUI window.
Build a Python desktop app that creates and displays a list box widget with items. Configure attributes such as border size, text color, background color, and cursor to customize list.
Build a Python desktop app that displays a determinate horizontal progress bar, updates its value by ten with a button, and sets window geometry; next task introduces a scrollbar.
Explore solving complex problems by building a Python Django web app that takes a number from a user and displays its factorial, and discuss converting it to a desktop application.
Create a Python app that gets a number via an entry widget, checks divisibility by two and three, displays result; assignment to input five numbers and display ascending order.
Explore problem 92 by building a Python desktop app that collects student marks, applies a grade criteria (a+, a, b, c, fail), and displays result, with notes on web porting.
Solve problem 93 by generating numbers 1–10 in Python, computing their squares, and displaying each pair in a desktop GUI with a label and a button.
Learn to build a Python tkinter app to collect five color names via entry widgets, store them in a list, and display each name with its character count.
Build a Python desktop app to collect five color names, store them in a list, and display all except the first and last, including a three-character color check.
Build a Python desktop app with a basic window that prompts for user input, converts it to lowercase, and displays the converted string or a 'already in lowercase' message.
Create a desktop Python app that collects five numbers via entry fields, stores them in a list, and displays only an even number in a window label.
Develop a Python desktop app that collects a string from a user through an entry widget, checks for space, and displays a message indicating whether the string contains a space.
Create a Python desktop application that collects five numbers via entry boxes, stores them in a list, computes their sum and product, and displays the results in a GUI window.
Build a Python desktop app to collect a username via a GUI and validate it with a regex, ensuring at least one letter and one number, then display the result.
Create a Python desktop app with a window geometry, entry box, and button to capture user input, save it to a text file, and display it in a label.
300+ Python Exercises (Simple, Intermediate & Complex) | Complete Python Bootcamp
Hi, Welcome to the Python Mega Course – 300+ Python Exercises designed to take you from Python Zero to Hero! This course is your ultimate guide to mastering Python programming through hands-on practice and real-world examples. Whether you are a beginner or an experienced coder, this Complete Python Bootcamp will help you strengthen your skills with over 300 exercises across simple, intermediate, and complex levels.
Why You Should Take This Python Exercises Course
If you’re looking to improve your Python programming skills, gain hands-on experience, and prepare for a career in data science, machine learning, or web development, this course is perfect for you.
This Python Exercises course includes:
100+ Simple Python Problems with Solutions
100+ Intermediate Python Problems with Solutions
100+ Complex Python Problems with Solutions
Every exercise comes with source code, algorithm, PPT notes, and assignments for additional practice. By following this course, you will gain confidence in solving problems, writing clean code, and applying Python in real-world scenarios.
This course is also inspired by the 100 Days of Python / 100 Days of Code approach, ensuring consistent daily practice to help you build a strong foundation and become a Python developer.
What You Will Learn
Through these 300+ exercises, you will cover essential Python topics, including:
Python Data Structures: lists, tuples, dictionaries, sets
Control Structures: if/else statements, loops, functions
Object-Oriented Programming: classes, inheritance, polymorphism
File Handling & Input/Output Operations
Exception Handling
Regular Expressions
GUI Programming with Tkinter
Python Libraries & Modules: NumPy, Pandas, and other key libraries
Web application relevant Python exercises
By the end of this course, you will have mastered Python programming from basic syntax to advanced concepts, making you ready for any professional project or technical interview.
Why Python Programming Practice Matters
Consistent Python programming practice is essential for building problem-solving skills, understanding Python syntax, and preparing for data science, AI, or web development roles. By practicing these Python exercises, you will develop a strong coding foundation and become comfortable with real-world programming scenarios.
Course Features
300+ Python Exercises categorized by difficulty
Complete solutions with source code, algorithms, PPT notes, and assignments
Hands-on exercises aligned with 100 Days of Python / 100 Days of Code practice
Focus on quality, clear explanations, and practical examples
Suitable for beginners as well as intermediate learners aiming for Python Zero to Hero mastery
Advantages of This Course
When you enroll in this Python Bootcamp / Complete Python Bootcamp / Python Mega Course, you will get:
Comprehensive video lectures covering all exercises
Assignments for additional practice and skill reinforcement
Detailed solutions for every problem
Downloadable source code and notes
Properly structured study materials for effective learning
Lifetime access with updates included
Who This Course is For
Beginners aiming to start Python programming from scratch
Students or professionals wanting to practice Python exercises daily
Anyone following the 100 Days of Python / 100 Days of Code challenge
Developers looking to improve problem-solving and coding skills for data science, web development, or AI
Take Your Python Skills to the Next Level
By completing this Complete Python Bootcamp, you will:
Become proficient in Python and solve simple to complex problems
Apply Python skills in real-world projects and assignments
Prepare for Python developer roles, freelancing, or data science positions
Gain confidence in programming with Python Zero to Hero approach
This is your opportunity to practice, learn, and master Python while following a structured approach designed to boost your coding career.
Enroll now in the 300+ Python Exercises course and start your journey from beginner to Python expert today!