Python code is readable almost like plain English. A classic first script:
print("Hello, World!")
name = input("What is your name? ")
print(f"Hello, {name}!")
Run it from the command line:
python3 hello.py
Python uses indentation (4 spaces by convention) instead of braces to delimit code blocks. This enforces readable code:
if True:
print("Indented block")
print("Still in the block")
print("Back to top level")
Check your Python version and start the interactive REPL (great for experimenting):
python3 --version
python3 # starts the interactive interpreter
>>> 2 + 2
4
>>> exit()