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
unlock-access

Solution...

The solution for this challenge is available to full members!
Find out how to become a member:
➤ Members' Area

Did you like this challenge?

Click on a star to rate it!

Average rating 1.7 / 5. Vote count: 18

No votes so far! Be the first to rate this post.

As you found this challenge interesting...

Follow us on social media!