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?
4 Réponses
+ 2
Dial 2 and press OK.
+ 1
float ("210" * int ("2")) == 210210.0
0
Hi
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"))))