
Practice Python by solving progressively harder problems after quick chapter introductions. The course covers lists, dictionaries, object-oriented programming, and file handling through 10–12 exercises per chapter.
You can install python for your computer from the following link:
https://www.python.org/downloads/
To install visual studio code click the link below:
https://code.visualstudio.com/download
Set up your working environment by installing and configuring Visual Studio Code, installing the Python extension, creating project folders and files, and preparing to run Python code.
open a single problem file and a text-based system to solve 100+ python exercises, following along from introduction to basics as you progress through the course.
Facebook group:
https://www.facebook.com/groups/155610680097692
Learn the basics of Python, including printing strings and numbers, using quotes, and writing comments; explore printing multiple items and newlines.
Learn how Python performs numeric operations such as addition, subtraction, multiplication, division, modulo, floor division, and exponentiation. Understand floating point results and the order of operations through hands-on coding practice.
Understand variables as empty containers that hold values, including numbers and strings, and use = to assign data. Learn naming rules, case sensitivity, underscores, and printing a variable's value.
Learn how Python handles data types such as integers, strings, floating point numbers, and booleans. Master string concatenation, variables, and basic print outputs.
Learn how to take user input in Python, save and process it with variables, prompts, and type conversion to build a basic calculator while handling errors.
Explore the problem-solving workflow for Python with Exercise 1 Hello.py: read prompts, attempt solutions, and craft an interactive or non-interactive hello program that greets the user by name.
Learn to calculate area by inputting width and length, compute the floating point area, and print the result with chosen units (e.g., centimeters) in Python.
Take user input as an integer age, compute the age in five years by adding five, and present a friendly, readable output with a clear prompt.
Explore a convertible calculator that converts days to seconds, Celsius to Fahrenheit, and miles to centimeters, using f-strings to print multiple variables from user input with formatted outputs.
Solve Python exercise to compute how many products fit on shelf by dividing shelf length by product length and flooring the result, e.g., 140 cm and 8 cm yield 17.
Compute savings account growth with a 2.1% interest on an initial deposit, then format the result to two decimal places using an f-string.
Learn to sum the digits of a three-digit number by extracting digits with modulo 10 and floor division by 10, or from the end, with the example 2+5+4=11.
Enter the meal price, apply a selected tax rate, compute a 10 percent tip on the pre-tax amount, and display the grand total with tax.
Learn to build a Python self-checkout change algorithm that, from total and payment, returns the fewest coins (1, 5, 10, 25, 50, 100 cents) using a step by step approach.
Master Python string slicing by extracting substrings with a start, stop, and optional step using zero-based indexing, through practical text manipulation exercises.
Practice string manipulation by taking two inputs for a first and last name with a space and calculating the number of letters using len.
Learn to compute the distance between two points on earth by entering their latitudes and longitudes, converting degrees to radians, and applying the distance formula in Python.
Explore decision making with if statements, conditions, and true/false branches in Python. Practice nesting and using else and elif with practical number-based examples.
Learn to determine the biggest of two numbers in Python using if statements, with input variables and print messages for bigger, equal, and second is bigger.
learn to determine if a number is odd or even using the modulo operation in python, printing whether the number is even when the remainder is zero and odd otherwise.
Master using and/or with multiple conditions in if statements to check a number between -10 and 10, then output positive, negative, or zero, or show an out-of-range error.
Learn to implement a Python leap year checker using an is_leap_year flag and nested if statements: check divisibility by 4, 100, and 400 with examples like 1900, 2000, and 2016.
Learn to build a Python exercise that displays square and triangle options, collects user input in any case, and computes area for square or triangle using base and height.
Read three triangle sides and classify the triangle as equilateral, isosceles, or scalene using Python, with the and operator to compare sides.
Learn to build a Python program that reads a day and month and uses if statements to identify holidays like Christmas and Halloween, with room to add more.
Learn how to determine an astrological sign from a birthday by reading day and month, using range checks and if statements to print the correct sign.
This Python exercise calculates a raise based on performance input (0, 0.25, 0.50). It computes 2000 pounds multiplied by performance and applies no raise, 500, or 1000, with input validation.
Solve a Python exercise that builds a phone plan bill calculator, handling base cost and overages for minutes, texts, and data, with the ceiling function and six percent tax.
Build a Python program that reads day, month, year and outputs the next day and the dates for the next four months with leap year handling and proper two-digit formatting.
Write a Python program that reads a chess position (column letter and row number), uses the alternating pattern to print black or white.
Explore Python loops, including while and for loops, with conditions and range. Learn how to iterate, print numbers, filter even values, and nest loops to practice with exercises.
Practice using for and while loops in Python by printing a name five times and extending to a user-defined number of repetitions, exploring range, break, and input.
Print your name, with spaces between letters, a chosen number of times using a nested for loop. Print letters one by one to visualize loops.
Learn to build a python program that sums 10 numbers, updating and printing the total after each input with a while loop, and add a choice prompt to continue.
Generate a Celsius-to-Fahrenheit conversion table from 0 to 100 in steps of five using a for loop, applying the conversion formula and proper formatting for each degree.
Use the chronometer library to measure how long it takes to execute a loop from 1 to 1,000,000, including installation, import, executing the block, and printing the elapsed time.
Develop a clear algorithm to convert a binary string to decimal by reading digits, applying powers of two, and summing results, with step-by-step guidance and debugging tips.
Discover how to determine palindromes in Python by building a reversed string from the end of a word, comparing it to the original, and validating with input words.
Import the random module and use methods like randrange or randint to generate numbers from 0 to 100, then print them to see different results on each run.
Learn to create a Python list of five dishes, import random, and print a randomly chosen meal from the list.
Practice a Python coin flip by generating a random 0 or 1, mapping to heads or tails, and comparing it to your guess input to validate the result.
Practice a 10-question arithmetic quiz using random numbers in Python, prompting user input, scoring correct answers, and optionally extending with random operations such as subtraction or multiplication.
Learn to implement a Python exercise that generates random number under 100 and uses a while loop to add numbers under 10, resetting when overshoot occurs until target is reached.
Practice building a number guessing game in Python, where a random 1–1000 is guessed within 10 tries, with too high/too low hints and a while loop controlling lives.
Learn to compute a polygon perimeter by inputting vertex coordinates, apply the distance formula with square roots, connect last to first, and sum side lengths with a while loop.
Build a Python program that prints elephant lyrics as the count increases, using input validation and a loop with a verification check to stop at five elephants.
Explore a coin flip 2.0 exercise by simulating five trials using random, tracking four consecutive heads with headcount and flips, resetting on tails, and printing total flips per run.
Learn how to define and use functions in Python, blocks of code, including naming, parameters, arguments, calling, printing, and returning values, with examples that show print versus return.
Practice revising Python exercises 41–61 by building and using functions, returning values, and unpacking results through examples like area, age, conversions, and tax calculations.
Develop decision making in python by building and calling functions to compare numbers, test even or odd, classify square or triangle shapes, and identify holidays by day and month.
Practice loops and functions in Python by building and calling functions, using range to control repetition, printing results, and exploring binary to decimal conversions and palindrome checks.
Define a Python function to determine if a number is prime by testing divisibility from 2 to n-1, returning true if no divisor is found, otherwise false.
Implement a next prime function that, given a number, finds the next prime after it using an infinite loop and a prime check, incrementing until prime is found.
In Python, learn to calculate the average of three numbers by defining an average function, importing random, generating three random values, and calling the function to print the result.
Build a Python function that calculates online shipping costs based on the number of items, charging 3.10 for the first item and 0.95 for each additional item.
Create a function that computes the number of days in a given month and year, handling leap years for February and distinguishing 30- and 31-day months.
Count uppercase and lowercase letters in a string by iterating through each character, using isupper and islower checks, and updating two counters to print the results.
Identify perfect numbers by creating a function that sums divisors and checks if the sum equals the number, then test integers up to one million, as in the example 6.
Build a Python password generator that creates 8–15 character passwords from random ascii codes 33 to 126, converting each code to a character and printing five passwords.
Create a Python function to validate a strong password with at least 10 characters, one uppercase, one digit, and a symbol, and track generation attempts with a main function.
Build a Python calculator with addition and subtraction functions. It loops until you enter x; the first number is entered once, and each result becomes the next first.
learn to implement fizzbuzz from 1 to 100 using if statements, replacing multiples of three with fees and of five with buzz, and checking the both-multiples case first.
Learn to build a Python multiplication table using nested loops, formatting each cell with specific spaces for 1-9, 10-99, and 100, and printing a patterned 10x10 grid.
Learn how to implement Pig Latin in Python by moving the consonant first letter to the end and appending ay for consonant-start words, while leaving vowel-start words unchanged.
Learn to write a Python exercise that generates 100 random numbers between 1 and 1000, updates the maximum whenever a larger value appears, and prints each update.
Implement a Python function that converts a Gregorian date (day, month, year) to its ordinal day of the year, accounting for leap years and month lengths.
Implement a Caesar cipher in Python by encrypting and decrypting an input string using a shift key, preserving spaces and symbols, and applying uppercase and lowercase handling with modulo 26.
Build a Python vending machine program with two products, prices, and stock tracking, featuring a menu, purchase flow, and total money in the machine.
Explore exercise 79 return policy in python by adding a number of days to a start date and converting to and from gregorian ordinal, handling leap years and year wraparound.
Develop a base-conversion program that converts numbers between bases two to sixteen, including decimal to binary and decimal to hexadecimal, then generalize to any base with an algorithm.
Explore creating Python lists with mixed elements, printing list or each item with a for loop, indexing from zero and with negative indices, saving elements to variables, and appending items.
Learn to build a list of numbers from 0 to 100 by initializing an empty list, looping over range(101), and appending each value to the end.
Generate a list of 10 random numbers, sort it in ascending and descending order with Python's sort method, and print both results.
Remove duplicates from a list by building a new list and adding each element only if it’s not already present. The result contains each fruit once: banana, orange, plum.
Learn to generate two alphabet lists in Python by looping over ascii codes 65–90 and 97–122, converting to characters and appending to each list. Print both lists to verify.
Build a Python lottery simulator that lets you pick six unique numbers, draws six random numbers from 1 to 49 without duplicates, compares the results, and determines the prize.
Implement a Python function to generate lottery tickets and count the attempts required to hit three, four, five, or six numbers, then optimize by reducing prints to speed up.
Generate at least 20 random elements from 1 to 100 (duplicates allowed), then remove the three smallest and three largest values using a function that finds min and max.
Explore exercise 88: implement a Python function that splits a sentence into words, preserves internal punctuation like don't and removes trailing punctuation such as commas and periods.
Check if a sentence is a palindrome by words, ignoring punctuation and spacing, by converting to lowercase, splitting into words, and comparing mirrored positions.
Learn to create a Python list of random numbers from -10, split it into negatives, zeros, and positives, then remove selected numbers from each list to practice list manipulation.
Learn to generate all sublists of a list in Python with nested loops and slicing, starting from an empty list, using an example list [1, 2, 3].
Create a 52-card deck in Python by combining suits and values, formatting cards like 4h or ac, to enable card game simulations and manual shuffling without built-in methods.
Master dictionaries in Python by creating and updating key-value pairs, printing contents, and traversing nested dictionaries and lists with clear, hands-on examples.
Learn how to auto populate a dictionary of names with random ages using a for loop and the random module, scaling from a few names to thousands.
Create a dictionary with keys 1 through 20 and values equal to the key squared using a for loop over range 1 to 21.
Practice dictionary manipulation in Python by creating a dict for keys 1–10 with random values 1–1000, compute the average, and sum values under average, then print dictionary and average.
Learn to build a Python character count program using a dictionary, loop through input text, add new keys with 1, and increment counts for each character, including spaces and symbols.
Learn to simulate old phone keypad texting by building a Python function that computes how many times to press each key for a given message, including lowercase handling.
calculate percent discounts in python by comparing current price to normal price, compute and round the discount, and print the results for items such as milk, yogurt, and carrots.
Learn to build an anagram checker that takes two strings, uses a character count dictionary to balance counts, and flags non‑anagrams, with an option to ignore spaces.
Compute an average from a grades dictionary by dividing by the dictionary length, enabling handling any number of elements, with optional rounding.
Learn to translate any string into Morse code with Python by mapping letters via a dictionary, iterating the word, lowering case, and outputting spaced Morse symbols.
Practice lottery simulations in Python by counting frequency of six-number draws from 1 to 59 across 100000 trials, and print the top six most frequently chosen numbers.
Build a python bingo card generator that creates a five-by-five grid with B, I, N, G, O columns and range-based numbers, plus a display function for printing.
Explore how to open, write, append, and read files in Python, manage file paths, and safely save progress and scores between sessions.
Generate five random numbers from 1 to 10 and write them to a file using Python's random module and a for loop.
Practice generating a random number, prompt for a file name, open and write the number as a string, then close the file in exercise 105.
Read the numbers file line by line and write a new file that excludes the chosen number, then remove the old file to replace it with the updated list.
This is not a standard video course teaching you hours of theory that you might forget a few months later. This course aims to teach through practice, problems to cover all the basics of Python and to put you on course to become a Python developer. Each problem we solve will have 3 steps: Do it yourself, where you attempt or solve the problem. This is the most important part of the 3 step process because once you use your brainpower to solve it, you put some effort into finding a way to solve it, it will stay with you forever and you will be more likely to be able to solve similar problems even harder. Idea, is the step where l come to help to give you some clues of how it needs to be done and what are the mechanisms behind solving it efficiently. Code, the step where l write the code to solve it and l explain step by step how it works.
No previous experience is required as all the theory is covered for each chapter. If you never experienced programming before this is the chance to start it in a stimulating and exciting way. If you are already familiar with the basics then this course can be a refresh, a place where to test your knowledge.
The course is still in development, next chapters will be added soon.