Utilizor
Contact Us

Python Syntax

Rules for writing Python code.

Examples

Indentation Example

Correct indentation.

if 5 > 2:
  print("Five is greater than two!")

Indentation Error

This will cause a syntax error.

if 5 > 2:
print("Five is greater than two!")

Test Your Knowledge

Python Quiz

No quiz available for this topic yet.