🐍 Lesson 2: Python Get Started
1. How do you get started with Python?
Short answer → You can start Python by installing it on your computer.
In other words → You can start Python by installing it on your computer.
2. How to install it
| Platform | Installation Method |
|---|---|
| Windows | python.org ကနေ Download & Install |
| Mac / Linux | အများစုမှာ Python ပါပြီးသား၊ Terminal မှာ python3 --version စစ်ကြည့်ပါ |
3. How to run Python
From the Command Line:
python
pythonRunning a File:
python
python hello.py4. IDE (Integrated Development Environment)
- VS Code → simple and widely used
- PyCharm → a professional-grade IDE
- Jupyter Notebook → great for Data Science and AI work
5. Summary
✅ You can install Python and run it from the command line or an IDE
✅ For your first test, run print("Hello, World!")
python
# ===== ပထမဆုံး Hello World Program =====
print("Hello, World!")
# ===== Python Version စစ်ကြည့်ခြင်း =====
import sys
print(f"Python Version: {sys.version}")
# ===== Multiple lines printing =====
print("Welcome to Python!")
print("Let's start coding!")You should see
Hello, World! Python Version: 3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit (AMD64)] Welcome to Python! Let's start coding!