Add Chapter 9 exercises
This commit is contained in:
parent
af1eb1c281
commit
13203998df
24 changed files with 1054 additions and 0 deletions
20
thinkcspy/Chapter-9-Exercises/Python-files/Problem4.py
Normal file
20
thinkcspy/Chapter-9-Exercises/Python-files/Problem4.py
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# Runestone.Academy thinkcspy course
|
||||
# Chapter 9
|
||||
# Problem 4
|
||||
|
||||
# your code here
|
||||
|
||||
num1 = 1
|
||||
product = 0
|
||||
|
||||
for n in range(12):
|
||||
num2 = 1
|
||||
row = ""
|
||||
|
||||
for x in range(12):
|
||||
product = num1 * num2
|
||||
row += "{} \t".format(product)
|
||||
num2 += 1
|
||||
|
||||
print(row)
|
||||
num1 += 1
|
||||
Loading…
Reference in a new issue