Apr-29-2019, 07:46 PM
Can someone help me figure out what is wrong with the following basic if statement:
------------------------------
>>> Nums=input("Number:")
Number:41
>>> R=int(Nums)%2
>>> R
1
>>> If R>0:
SyntaxError: invalid syntax
------------------------------
The invalid syntax is referring to the R in R>0
------------------------------
>>> Nums=input("Number:")
Number:41
>>> R=int(Nums)%2
>>> R
1
>>> If R>0:
SyntaxError: invalid syntax
------------------------------
The invalid syntax is referring to the R in R>0