Python Forum

Full Version: Basic If statement
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Your if starts with capital letter.
Thanks! That worked. I'm a newbie. It's the details that are getting me so far.