# This is a comment
print("Hello, World!")
Variables are used to store data. You don’t need to declare the type explicitly — Python handles that for you.
name = "John"
age = 25
is_student = True
Python supports dynamic typing, which means you can reassign a variable to a different type.
x = 5 # integer
x = "text" # now a string
Python is used in a wide variety of fields: