0
Please I keep getting error in reading line two
print(float(input("Enter a number:"))) x=float(input("Enter a number:"))
5 Answers
+ 4
Do this :
x=float(input("Enter a number:"))
if x>2:
print("yep")
elif x<2:
print('okay')
else:
print("no")
+ 2
Do this :
x=float(input("Enter a number:"))
print(x)
0
Thanks but what of this:
print(float(input("Enter a number:")))
x=float(input("Enter a number:"))
if x>2:
print("yep")
elif x<2:
print('okay')
else:
print("no")
0
On SoloLearn you have to provide all inputs at the start. If you have more than one, you must put them all on separate lines, e.g.
3.7
2.8
0
But pls I need to print this :
print(float(input("Enter a number:")))