+ 2
try this Number = input('Enter a number:') Multiplication_Table = list(range(int(Number) , int(Number)*11, int(Number))) print (Multiplication_Table)
30th Jul 2016, 2:55 AM
Tigran Z
Tigran Z - avatar
+ 2
Or else u can simply add int in the input statement i.e,Number=int(input("enter a number"))
31st Jul 2016, 11:33 PM
nikitha gireddy
nikitha gireddy - avatar
0
Or maybe: Number = int(input('Enter a number:')) Multiplikation_Table = list(range(Number, Number*11,Number)) ...
30th Jul 2016, 4:04 PM
Honk
0
While input it's taking string value.. By default it takes string,. So, here we using type casting
9th Aug 2016, 5:54 PM
Ashutosh Mishra
Ashutosh Mishra - avatar