0

Python Type Conversion

print(float(input("Enter a number: ")) + float(input("Enter another number: "))) When I typed-in this syntax in the code playground section, just as I executed the codework the code playground asked me to enter a value.... but when I entered the very same codework in the real python 3.7 all it displays is just ... as the output In case this is normal to happen in the real python 3.7 (that the output just shows ... instead of asking me to enter a certain value), whilst I registered "Enter value " or "Enter a number" any of such. What syntax should I type in, in order for the Pyhton 3.7 to ask for certain value". Thank You

9th Dec 2018, 11:05 AM
Gary Jovan
Gary Jovan - avatar
1 Answer
+ 5
I tried your code in my terminal and it worked just fine. It asked me to input a number one after the other. I also have python 3.7 installed so I don't understand why this is happening to you. Are you saying that when you try it on your end, all you get is "..."?
9th Dec 2018, 12:17 PM
Lambda_Driver
Lambda_Driver - avatar