Created
January 17, 2020 23:19
-
-
Save yosefsadek/8e0624455f57b64df3e0674be9ebfb66 to your computer and use it in GitHub Desktop.
py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
timestable = input("Enter the timestable you wish to learn (1-12) ") | |
# loop that will repeat 13 times (0-12) | |
for x in range(0,13): | |
# the answer uses x which increases each time to work out the answer | |
answer = x * int(timestable) | |
# x is used in the print command to display what it is multiplying the number entered by | |
print(timestable + " x " + str(x) + " = " + str(answer)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment