# ask the user of the series of multiplication table they want it to be printed: multiple = int(input("Enter the multiplication table series to generat: ")) # set the first value in the table as 1: value = 1 # To make sure that the multiplication table will be up to 12: while value<=12: # Formula number = multiple * value # to print the result using required format: print(f"{value} x {multiple} = {number}") # in order to inctease the value by 1, using this syntax: value = value+1
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter