0

type-conversion

on python course type conversion, the question below float("210" * int(input("Enter a number:" ))) enter number : 2 the answer is 210210.0 however i paste the code to the console and run, it show only "enter a number;" why is it?

3rd May 2019, 4:49 AM
Jun Kit
Jun Kit - avatar
5 ответов
+ 2
Dial 2 and press OK.
3rd May 2019, 4:54 AM
Александр Иванов
Александр Иванов - avatar
+ 1
float ("210" * int ("2")) == 210210.0
3rd May 2019, 4:55 AM
Александр Иванов
Александр Иванов - avatar
0
Hi
15th Apr 2020, 12:02 PM
Roki Das
Roki Das - avatar
0
You need to print your output. As of now, it's just possessing the function. Add print function before float as print(float("210" * int(input("Enter a number"))))
27th Jul 2020, 7:17 AM
Priyanshu Mallick
Priyanshu Mallick - avatar