What Python is and how to run it
What Python is and how to run it
Python is a general-purpose language with readable syntax. You can run scripts with the Python interpreter or use an interactive shell. Indentation defines code blocks, so use consistent four-space indentation.
Try it yourself
Change the example, run it, and explain the result in your own words. Then create one variation of your own.
Key idea
Use the example as a starting point, not something to memorize. Practise, inspect the result and make small improvements.
Code example
print("Hello, world!")