print(float "210" * int(input("Enter another number: "))) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

print(float "210" * int(input("Enter another number: ")))

could someone explain this with the correct code. I tried this code and getting error

29th Sep 2016, 1:06 PM
Rakesh Subrahmanyan
Rakesh Subrahmanyan - avatar
6 Answers
+ 8
print (float (210)*int (input..... the float function requires () just like int, str, and any other function.
29th Sep 2016, 3:16 PM
Luke Armstrong
+ 3
print("210" * int(input("Enter another number: "))) or may be you whant this print(210 * int(input("Enter another number: ")))
29th Sep 2016, 1:34 PM
Raphael
Raphael - avatar
+ 1
thank you guys
2nd Oct 2016, 12:01 PM
Rakesh Subrahmanyan
Rakesh Subrahmanyan - avatar
+ 1
Thank you very much !!!
12th Oct 2016, 7:32 PM
Vahe
Vahe - avatar
0
thanks!
1st Nov 2016, 8:33 PM
eugenia klyutko
eugenia klyutko - avatar
0
print (int("210")*int(input("enter another number")))
9th Dec 2016, 5:11 PM
Amit Pandit
Amit Pandit - avatar