EXERCISE TOPIC▼
- Access exercises (91)
- C# exercises (79)
- Excel exercises (278)
- Power Apps exercises (13)
- Power Automate exercises (18)
- Power BI exercises (139)
- Python exercises (28)
- Report Builder exercises (141)
- SQL exercises (198)
- SSAS exercises (51)
- SSIS exercises (46)
- SSRS exercises (99)
- VBA exercises (85)
- Visual Basic exercises (46)
PYTHON EXERCISES▼
PYTHON EXERCISES▼
Free Python exercises
This page lists 28 Python exercises. You can use the menu on the left to show just exercises for a specific topic.
This page lists 28 Python exercises. You can use the menu above to show just exercises for a specific topic.
Software: | Python |
Version: | Latest version |
Topic: | Basic coding |
Level: | Relatively easy |
Course: | Python programming |
Exercise: | Using the INPUT and PRINT functions, get and display the meaning of life. |
Software: | Python |
Version: | Latest version |
Topic: | Ranges and loops |
Level: | Relatively easy |
Course: | Python programming |
Exercise: | Use the range and format functions to loop down from 10 to 1 displaying a countdown message. |
Software: | Python |
Version: | Latest version |
Topic: | Functions |
Level: | Relatively easy |
Course: | Python programming |
Exercise: | Define a function to print out text with the correct length of underlining. |
Software: | Python |
Version: | Latest version |
Topic: | Sequences |
Level: | Relatively easy |
Course: | Python programming |
Exercise: | Use a list to store items in a shopping list, print them out and change one. |
Software: | Python |
Version: | Latest version |
Topic: | CSV and Excel |
Level: | Relatively easy |
Course: | Python programming |
Exercise: | Use the openpyxl module to create a new workbook and add values/formulae to it. |
Software: | Python |
Version: | Latest version |
Topic: | Overview of NUMPY |
Level: | Relatively easy |
Course: | Python programming |
Exercise: | Create a NumPy array of the Tokyo Olympics medal table, then slice and sum it. |
Software: | Python |
Version: | Latest version |
Topic: | Sequences |
Level: | Relatively easy |
Course: | Python programming |
Exercise: | Use different slicing techniques to extract the names of animals from strings of text. |
Software: | Python |
Version: | Latest version |
Topic: | Sequences |
Level: | Relatively easy |
Course: | Python programming |
Exercise: | Loop over the items in a range which are divisible by one number but not another. |
Software: | Python |
Version: | Latest version |
Topic: | Files and folders |
Level: | Relatively easy |
Course: | Python programming |
Exercise: | Open a file for writing, write out your details then read them back in to check. |
Software: | Python |
Version: | Latest version |
Topic: | Ranges and loops |
Level: | Average difficulty |
Course: | Python programming |
Exercise: | Use the range function in an outer loop to find all the primes up to 100 using an inner loop. |
Software: | Python |
Version: | Latest version |
Topic: | Comprehensions |
Level: | Average difficulty |
Course: | Python programming |
Exercise: | Use text functions, loops and a comprehension to analyse word counts. |
Software: | Python |
Version: | Latest version |
Topic: | Dictionaries |
Level: | Average difficulty |
Course: | Python programming |
Exercise: | Use a dictionary to hold details of the tallest buildings in the world, then list its items. |
Software: | Python |
Version: | Latest version |
Topic: | Basic coding |
Level: | Average difficulty |
Course: | Python programming |
Exercise: | Use the input, str and int functions to get two numbers from a user and show their sum. |
Software: | Python |
Version: | Latest version |
Topic: | Sequences |
Level: | Average difficulty |
Course: | Python programming |
Exercise: | Create a tuple containing a list, a string and an integer, then list its contents. |
Software: | Python |
Version: | Latest version |
Topic: | Sequences |
Level: | Average difficulty |
Course: | Python programming |
Exercise: | Create a list of all of the words in a speech, and loop over it printing certain ones. |
Software: | Python |
Version: | Latest version |
Topic: | CSV and Excel |
Level: | Average difficulty |
Course: | Python programming |
Exercise: | Open an Excel workbook and read down a list of plants finding the ones not in stock. |
Software: | Python |
Version: | Latest version |
Topic: | Sequences |
Level: | Average difficulty |
Course: | Python programming |
Exercise: | Practise slicing and looping on a list of the most common English words. |
Software: | Python |
Version: | Latest version |
Topic: | Files and folders |
Level: | Average difficulty |
Course: | Python programming |
Exercise: | Open a text file, read its lines and split each to give field details for a list of Muppets. |
Software: | Python |
Version: | Latest version |
Topic: | Overview of Pandas |
Level: | Average difficulty |
Course: | Python programming |
Exercise: | Read an Excel workbook into a Pandas dataframe, then perform various operations. |
Software: | Python |
Version: | Latest version |
Topic: | Working with sets |
Level: | Average difficulty |
Course: | Python programming |
Exercise: | Comapre two lists of grand prix races using sets to find any differences. |
Software: | Python |
Version: | Latest version |
Topic: | Scraping websites |
Level: | Average difficulty |
Course: | Python programming |
Exercise: | Use BeautifulSoup to compile a list of external links for any website. |
Software: | Python |
Version: | Latest version |
Topic: | Ranges and loops |
Level: | Average difficulty |
Course: | Python programming |
Exercise: | Use the range and format functions to list the square roots of the first 100 integers. |
Software: | Python |
Version: | Latest version |
Topic: | Functions |
Level: | Average difficulty |
Course: | Python programming |
Exercise: | Create functions to parse a quotation into a list of words and get some statistics about them. |
Software: | Python |
Version: | Latest version |
Topic: | Files and folders |
Level: | Harder than average |
Course: | Python programming |
Exercise: | Loop over the files in a folder, reading the shopping data from each. |
Software: | Python |
Version: | Latest version |
Topic: | Sequences |
Level: | Harder than average |
Course: | Python programming |
Exercise: | Create a list of numbers which can not be expressed as a sum of an integer and its sum of digits. |
Software: | Python |
Version: | Latest version |
Topic: | Basic coding |
Level: | Harder than average |
Course: | Python programming |
Exercise: | Use an if / elif / else block to return the Hogwarts house colours for an input house name. |
Software: | Python |
Version: | Latest version |
Topic: | Ranges and loops |
Level: | Harder than average |
Course: | Python programming |
Exercise: | Print out ever-more-accurate estimates of the value of pi using the Leibniz series. |
Software: | Python |
Version: | Latest version |
Topic: | Functions |
Level: | Harder than average |
Course: | Python programming |
Exercise: | Write 3 functions to complete a system to extract countries from any given CSV file. |
You can search our full list of Python exercises here. Or why not learn to do them the right way on one of our classroom Python training courses in the UK, or on one of our live online Python courses wherever you are in the world?
This page has 0 threads
Add post