1 min read

Python Syntax

Python has a simple and readable syntax.

Variables

Variables in Python are created when you assign a value to them.

x = 5
y = "Hello, World!"

Comments

Comments in Python start with a # character.

# This is a comment