Python Foundation | Input and Output Question 7

Last Updated :
Discuss
Comments

Find the output of the below python code for x=2

Python
x = float(input())
print(x)

2.0

2

Compilation Error 

None of the above

Share your thoughts in the comments