Python Forum
First Program, Syntax Issues - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: First Program, Syntax Issues (/thread-27044.html)



First Program, Syntax Issues - Hitso - May-23-2020

Please help. My first few lessons and attempt at python. Using Spyder (Python 3.7)

salary = 5000
If salary > 5000:
    print ("Approved")
Am getting the following error when running.
Error:
File "C:\Users\heetesh.j.bhoola\untitled15.py", line 9 If salary > 5000: ^ SyntaxError: invalid syntax



RE: First Program, Syntax Issues - jefsummers - May-23-2020

First, please use the python tags when posting code, otherwise indentation is lost. And, in Python, indentation is incredibly important.

Python is case sensitive. Change the If to if.