0

Please I keep getting error in reading line two

print(float(input("Enter a number:"))) x=float(input("Enter a number:"))

11th May 2020, 9:25 PM
Stephen Tweneboah
5 Answers
+ 4
Do this : x=float(input("Enter a number:")) if x>2: print("yep") elif x<2: print('okay') else: print("no")
11th May 2020, 9:38 PM
Arb Rahim Badsa
Arb Rahim Badsa - avatar
+ 2
Do this : x=float(input("Enter a number:")) print(x)
11th May 2020, 9:28 PM
Arb Rahim Badsa
Arb Rahim Badsa - avatar
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")
11th May 2020, 9:36 PM
Stephen Tweneboah
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
11th May 2020, 9:37 PM
Russ
Russ - avatar
0
But pls I need to print this : print(float(input("Enter a number:")))
11th May 2020, 9:40 PM
Stephen Tweneboah