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

Loading Windows in CLI mode

XHR/fetch Breakpoints Explained

What is the difference between iostream and iostream.h in cpp?