
Identify the three tools: a computer, python 3, and an editor like Atom. Use Atom with platformio-ide-terminal to write and run python scripts in your project directory.
Master Python by coding 100 practical problems teaches best practices for solving exercises, from setting up one file per exercise to testing outputs in Python terminal, with hints and explanations.
provide a video solution to exercise 3 that teaches diagnosing a name error by focusing on the error message 'name C is not defined' and the code line 4.
Learn to generate a list from 1 to 20 dynamically using ranges in Python, printed from a finished script without manual listing.
Demonstrates solving exercise 12 by using a one-line list comprehension to multiply each range item by 10, producing a printed list; a standard for loop is also possible but longer.
Convert a range to strings in Python using the map function and the built-in str function, then transform the result into a list and print it.
Diagnose a key error in Python by printing surname Smith to the terminal, explain why the key error occurs, and show how to access the name surname Smith.
Create a dictionary with keys a, b, c and values as three lists (1–10, 11–20, 21–30) and print a nicely formatted dictionary.
Access the key b's list, retrieve the third item at index 2 to output 13, and print intermediate results to verify the solution.
Explore solving exercise 24 by iterating a dictionary with a for loop over dict.items, printing each key and its value with the phrase 'has value'.
Practice printing the English alphabet from A to Z with a script, producing one letter per line, as exercise 25 of Master Python by coding 100 practical problems.
Learn how to fix a Python syntax error from a non-default argument following a default argument. Move the default after the non-default and test with calls passing 2 and 3.
Explore the solution to exercise 31 by diagnosing a type error from an unsupported operand for minus when subtracting a function object, and fix it by calling the function.
Discover how Python executes a script top to bottom, distinguishes local and global variables, and returns the function’s local c value of 2 in exercise 33.
Fix the script by importing math and using math.cos to print the cosine of an angle in radians.
Demonstrates a Python script that generates a text file listing the alphabet two letters per line, using the built-in string module with a for loop and zip to pair letters.
Create a solution to exercise 45 that generates 26 text files named A to Z inside a folder named letters, with each file containing its corresponding letter.
Practice writing a Python script to extract letters from 26 text files and store them in a list, then print the list, using attached files if needed.
Learn to implement a Python solution for exercise 46 that uses glob to read 26 text files, strips newlines, builds a letters list, and prints the result.
Master Python by coding 100 practical problems: exercise 47 builds a conditioned letter extractor that iterates through 26 text files and prints letters found in the string 'python'.
Learn to add an employee to a json file with Python's json library using r+ mode. Example covers reading, updating the employees list, and writing back with indent and sort_keys.
Create a program that prints hello repeatedly to produce the continuous output hello hello hello in the terminal.
Solve exercise 60 by printing hello repeatedly using a while loop; true is always true, so it prints continuously, with CTRL+C to interrupt.
This solution demonstrates printing hello with longer delays using a time-based loop. It uses a counter and sleep calls to print hello instantly, then after 1, 2, and so on.
The exercise 63 solution uses the time module to print hello instantly, sleep between iterations, and break the loop after i exceeds three, and then prints end of loop.
Explore a Python loop and the break statement in exercise 64, learning how replacing break with a different control flow lets hello and hi print alternately in an endless cycle.
Present the solution to exercise 64 by replacing the break with another thing, such as 1+1 or pass, to keep printing hello and hi in a while true loop.
Explore how to modify a Python snippet by replacing the break statement to print hello repeatedly while suppressing hi, transforming a single-print program into an infinite loop.
Replace break with continue in exercise 65 to print hello repeatedly while hi never appears; explain how while true prints hello, continue restarts the loop, and break exits.
Translate a word from English to Portuguese using a dictionary, and handle missing entries with a try-except block, including explicit KeyError handling.
Create a Python script that prompts the user for a search term and automatically opens a browser to search Google for that term.
Plot the provided two-column data from the URL using a script, choosing any plot library to visualize the x and y values.
Practice creating a date and time generator in Python by dynamically printing a string with the current day, month, date, and year.
Learn to generate six-character random passwords in Python for a web app, using lowercase and uppercase letters and numbers to create unique passwords on each run.
Build a password checker that prompts until the password has at least one number, one uppercase letter, and a minimum of five characters, printing 'password is not fine' when unmet.
Create an advanced Python password checker that insists on at least one number, one uppercase letter, and five characters, then reports the exact missing rule.
Practice building a script that prompts for a username and password, checks three validation conditions, explains the reason for any failure, and uses a downloaded users.txt to reject existing usernames.
Exercise 81 prompts users for a username and validates it against existing usernames loaded from a text file, using two while loops, list comprehension, and password checks.
Create a hello world window using the pyglet library to build a simple graphical user interface for Python game development.
Explore exercise 84 by researching pyglet, install pyglet via pip, and construct a simple pyglet window displaying a centered label with basic window event handling.
Create a Python script using list comprehensions to clean countries_raw.txt by stripping newline characters, removing empty lines and single-letter entries, and writing the cleaned country list to a new file.
Exercise 87 guides you to add Portugal, Germany, and Spain to a list of countries, then create a new file containing all 201 countries plus these three.
Demonstrate solving exercise 87 by merging 201 country entries with three new items, formatting with newline markers, sorting alphabetically, and writing the updated 204-country list to a new file.
Learn to query a SQLite database to filter countries by area, printing those with the area over 2 million square kilometers using a sample database.
Master Python database access with sqlite3: connect to a file, create a cursor, execute a select query on countries where area >= 2 million, fetch all, and print names.
Query a database with Python to filter countries by area greater than 2 million square kilometers and export a csv file containing rank, country, area, and population.
Solve exercise 90 by using an asterisk to select all columns from the countries table, create a pandas dataframe from records, set columns, print, and export to csv with index=false.
Add ten more country records from ten_more_countries.txt starting from Spain to the existing database.db, expanding to 50 countries and leaving population as null where data is missing.
Open the file in read mode, build a lines list, remove s letters with line.replace, insert a slash after the sixth character, and write the results to a file.
Design a program that reads comma separated values from user input, creates a text file if needed, and appends new entries on subsequent runs.
Create a file writer that collects user input until the user enters close in capital letters, writing each entry to data.txt, one per line, and appending on subsequent runs.
Open a file in append mode to create or append content, then loop to collect user input until 'close' is entered, writing entries to the file and saving changes.
Create a Python program that accepts repeated text input, saves on 'save', and saves and closes on 'close', demonstrating advanced file writer behavior.
Open the file in append mode for exercise 97 and run a while loop for input. Close to save changes, reopen to continue, and use elif to handle close.
Develop a desktop gui in Python that collects text via an entry box and three buttons: add line, save changes, save and close, and writes lines to a text file.
Create a data writer web app that lets users submit text and saves each line to a local text file using the Flask web framework, accessible at port 5000 (localhost:5000).
Explore the exercise 99 Flask solution that writes user input to a text file via get and post routes, using render template string and app configuration.
Build a Flask web app that checks usernames against a users.txt file and enforces a password that satisfies three conditions, displaying success or prompts on localhost 5000.
Unlike standard video courses that walk you through the learning process, in this course, you will learn and improve your Python skills by solving 100 different Python assignments on your own. The assignments range from easy to advanced and each assignment comes with the solution provided by the instructor so you can compare your code with that of the instructor.
The course works best for those who already know Python basics that are variables, basic data types, functions, loops, and conditionals. If you don’t know Python basics, please, take a Python for beginners course first. Besides the exercises, the course also contains short and to-the-point videos tackling key Python concepts related to the exercises.
The exercises become more difficult as you progress through the course. The topics that the problems cover vary widely. You will find problems such as simple password generators, removing duplicates, finding the smallest file, fixing bugs in existing programs, and even creating chatbots from scratch. The wide range of exercises helps to improve your Python skills in all important areas.
This course will also increase your confidence when applying for jobs. The skills you learn in this class are common questions in programming job interviews. You will be prepared!