Creating Multiplication Table through List Comprehension in Python

 

tableOf = int(input("Which table? "))
list = [tableOf*i for i in range(1, 11)]
print(list)



Comments

Popular posts from this blog

Quotation marks to wrap an element in HTML

Making GUI Calculator in Tkinter Python

Unlocking Web Design: A Guide to Mastering CSS Layout Modes