Hello, Python
Install Python, run your first script, and understand how the interpreter works.
What you will learn
- Run Python from the terminal
- Use print() and comments
- Understand .py files
Python is an interpreted language — you write text, the interpreter runs it line by line. No compile step before you see output.
Your first program
python
print("Hello, stackcone!")
print(2 + 2)Save as hello.py and run:
bash
python3 hello.pyTry it yourself
Change the program to print your name and today's year on two separate lines.
