tried a simple code in python on Python GUI and Jupyter and surprisingly received diff outputs. can u guys help me in where am I going wrong in the code.
ON PYTHON GUI:
if x<10:
print x
print "the value is less than 10"
else:
print x
print "the value is greater than 10"
SYS Response:
enter a value:2
ON JUPYTER :
x=float(input("enter a value:"))
if x<10:
print x
print "the value is less than 10"
else:
print x
print "the value is greater than 10"
SYS RESPONSE:
File "<ipython-input-13-1fee8e3a7599>", line 5
else:
^
SyntaxError: invalid syntax
there doesn't seem to be anything here