Skip to content

Instantly share code, notes, and snippets.

View Chinmaytare's full-sized avatar

soulCode Chinmaytare

  • India
View GitHub Profile
@Chinmaytare
Chinmaytare / list_multiplication.py
Created April 5, 2017 12:03
Printing a list of multiplication table for any given number (in a python list form)
x = int(input("Enter a number to get its multiplication table: "))
z = int(input("Table upto?: "))
running = True
while running:
table = [[x, y, x * y] for y in range(1, z+1)]
for i in table:
print(i)
continue
print("Done.")
running = False