Lesson 1.3: Your First Python Program
📖 Python for Data
⏱️ 15 min
Interactive Mode (Easiest)
Open Terminal/Command Prompt and type:
python
Then type:
>>> print("Hello, Python!")
Hello, Python!
>>> 5 + 3
8
>>> name = "John"
>>> print(name)
John
Creating a Script File
Create a file named hello.py with:
print("Hello, World!")
print("I am learning Python")
print(10 + 5)
Run it from terminal:
python hello.py
✓ Free Lesson
This lesson is completely free. No enrollment required. Continue learning!