Read our blogs, tips and tutorials
Try our exercises or test your skills
Watch our tutorial videos or shorts
Take a self-paced course
Read our recent newsletters
License our courseware
Book expert consultancy
Buy our publications
Get help in using our site
493 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owl trainers only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
Search our website
We also send out useful tips in a monthly email newsletter ...
You are welcome to try any of the 34 Python exercises listed below, but please do not distribute them in any form without asking for our written permission first.
Software: | Python |
Topic: | Basic coding |
Level: | Relatively easy |
Exercise: | Using the INPUT and PRINT functions, get and display the meaning of life. |
Software: | Python |
Topic: | Basic coding |
Level: | Average difficulty |
Exercise: | Use the input, str and int functions to get two numbers from a user and show their sum. |
Software: | Python |
Topic: | Basic coding |
Level: | Harder than average |
Exercise: | Use an if / elif / else block to return the Hogwarts house colours for an input house name. |
Software: | Python |
Topic: | Ranges and loops |
Level: | Relatively easy |
Exercise: | Use the range and format functions to loop down from 10 to 1 displaying a countdown message. |
Software: | Python |
Topic: | Ranges and loops |
Level: | Average difficulty |
Exercise: | Loop over the items in a range which are divisible by one number but not another. |
Software: | Python |
Topic: | Ranges and loops |
Level: | Average difficulty |
Exercise: | Use the range and format functions to list the square roots of the first 100 integers. |
Software: | Python |
Topic: | Ranges and loops |
Level: | Harder than average |
Exercise: | Print out ever-more-accurate estimates of the value of pi using the Leibniz series. |
Software: | Python |
Topic: | Ranges and loops |
Level: | Harder than average |
Exercise: | Use the range function in an outer loop to find all the primes up to 100 using an inner loop. |
Software: | Python |
Topic: | Files and folders |
Level: | Relatively easy |
Exercise: | Open a file for writing, write out your details then read them back in to check. |
Software: | Python |
Topic: | Files and folders |
Level: | Average difficulty |
Exercise: | Open a text file, read its lines and split each to give field details for a list of Muppets. |
Software: | Python |
Topic: | Files and folders |
Level: | Harder than average |
Exercise: | Loop over the files in a folder, reading the shopping data from each. |
Software: | Python |
Topic: | Working with sets |
Level: | Average difficulty |
Exercise: | Compare two lists of grand prix races using sets to find any differences. |
Software: | Python |
Topic: | Dictionaries |
Level: | Average difficulty |
Exercise: | Use a dictionary to hold details of the tallest buildings in the world, then list its items. |
Software: | Python |
Topic: | Dictionaries |
Level: | Harder than average |
Exercise: | Read in lines from a CSV file into a dictionary and find an item by name if it exists. |
Software: | Python |
Topic: | Comprehensions |
Level: | Average difficulty |
Exercise: | Use text functions, loops and a comprehension to analyse word counts. |
Software: | Python |
Topic: | Scraping websites |
Level: | Average difficulty |
Exercise: | Use BeautifulSoup to compile a list of external links for any website. |
Software: | Python |
Topic: | CSV and Excel |
Level: | Relatively easy |
Exercise: | Use the openpyxl module to create a new workbook and add values/formulae to it. |
Software: | Python |
Topic: | CSV and Excel |
Level: | Average difficulty |
Exercise: | Open an Excel workbook and read down a list of plants finding the ones not in stock. |
Software: | Python |
Topic: | Linking to SQL Server |
Level: | Relatively easy |
Exercise: | List out long films which won more than 7 Oscars from a SQL Server database. |
Software: | Python |
Topic: | Overview of NUMPY |
Level: | Relatively easy |
Exercise: | Create a NumPy array of the Tokyo Olympics medal table, then slice and sum it. |
Software: | Python |
Topic: | Overview of NUMPY |
Level: | Average difficulty |
Exercise: | Use NumPy array functions to work out how much your pancake stall is spending on ingredients. |
Software: | Python |
Topic: | Overview of Pandas |
Level: | Relatively easy |
Exercise: | Load, sort and slice a Pandas dataframe of the most-viewed YouTube videos of all time. |
Software: | Python |
Topic: | Overview of Pandas |
Level: | Average difficulty |
Exercise: | Read an Excel workbook into a Pandas dataframe, then perform various operations. |
Software: | Python |
Topic: | Overview of Pandas |
Level: | Harder than average |
Exercise: | Rename the columns in a dataframe of the most-viewed Netflix series and filter the rows. |
You can search our full list of Python exercises here. Or why not learn to do them the right way on one of our Python training courses? You can attend our online training classes wherever you are in the world!
Kingsmoor House
Railway Street
GLOSSOP
SK13 2AA
Landmark Offices
99 Bishopsgate
LONDON
EC2M 3XD
Holiday Inn
25 Aytoun Street
MANCHESTER
M1 3AE
© Wise Owl Business Solutions Ltd 2025. All Rights Reserved.