Lesson 1.a: Execute Python Syntax
As we learned in the previous page, Python syntax can be executed by writing directly in the Command Line:
>> print(“Hello, World!”)
Hello, World!
Python Indentation
Indentation refers to the spaces at the beginning of a code line.
The indentation in Python is very important.
Good Code:
if 5 > 3:
print(“Five is greater than three!”)
Syntax Error:
if 5 > 3:
print(“Five is greater than three!”)
Syntax Error:
if 5 > 3:
print(“Five is greater than three!”)
print(“Five is greater than three!”)
Comments in Python:
#This is a comment.
print(“Hello, World!”)

