Posts

Showing posts with the label list comprehension

Creating Multiplication Table through List Comprehension in Python

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