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:
Challenge #2
Tweak your code to display a number grid as follows:
Solution...
The solution for this challenge is available to full members!Find out how to become a member:
➤ Members' Area