Why is it not working | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
31st Mar 2020, 7:04 AM
Gaurav Chanda
Gaurav Chanda - avatar
4 Answers
+ 1
`input` function returns a string. You need to convert the two input string into numbers before you can do arithmetic operation on them. num1 = int(input("Enter 1st number")) num2 = int(input("Enter 2nd number")) Then you can multiply them, and print the result. print(num1 * num2)
31st Mar 2020, 7:29 AM
Ipang
+ 1
Please change your tag, it shouldn't be abc.
30th Dec 2020, 1:08 AM
Michael
Michael - avatar
0
What do u want to say
31st Mar 2020, 7:10 AM
Gaurav Chanda
Gaurav Chanda - avatar
0
Just try to run the code
31st Mar 2020, 7:11 AM
Gaurav Chanda
Gaurav Chanda - avatar