0
I'm not able to write print ("program ended")....the second ones
I'm not able to write print ("program ended")....the second ones after if 5<10 print ("10 is greater than 5") .......it gives the error of invalid syntax exact statement: if 10>5 : print("10 is greater than 5") print ("abc")
2 Respuestas
+ 1
There is nothing wrong in that code
if 10>5: print("10 is greater that 5")
print("abc")
Just make sure you are using python3 not python2
In case you are using python2 , use print wothout parentheses.
0
A litle trick here, add on top this line.
from __future__ import print_function