Getting Started
Download Python from python.org and install it. Then check it worked by typing python --version (or python3 --version) in a terminal. You can run code in two ways: type it into the interactive prompt (the REPL), or save it in a file ending in .py and run python file.py.
A good code editor such as VS Code makes writing Python much easier. Beginners can also use an online Python tool to try the examples without installing anything.
Example
print("Python is working")Result
Python is working
Exercise
Which command runs a file called app.py?
app.pyQuiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.