Times Table Challenge

x-times-table-challenge

Learning Objectives


By completing this challenge you are going to perform arithmetic operations in Python. You will also learn how to manipulate counted loops (for loops) and how to combine loops together using nested loops.

Times Table


Look at the code below. It’s asking the user to type a number and then it displays the times table for that number using a for loop.

Nested Loops


When you insert a loop within a loop, you are using “nested loops”.
Check the code below that uses a nested loop.

Challenge #1


Tweak the code above to display a full times table:
times-table

Challenge #2


Tweak your code to display a number grid as follows:
number-grid

Share Button
Posted in Computer Science, Python - Intermediate, Python Challenges

Our Latest Book