🏠 Home / Hub
🏠 Back to Hub
🐍

Python Basic Lessons

Python ကို zero ကနေ စပြီး syntax, data types, flow, functions, files, OOP နဲ့ mini project အထိ တစ်ဆင့်ချင်းသင်မယ်။

11 Lessons Beginner Friendly Code Examples Mini Project Included
Part 1 — Foundation
01
👋

Setup, Syntax & Print

Python install, VS Code setup, indentation, comments, print(), input() basics.

printinputindent
02
📦

Variables & Data Types

String, int, float, bool, None, type conversion, f-string formatting.

strintf-string
03
🔀

Conditions & Loops

if / elif / else, comparison, logical operators, for loop, while loop, range().

ifforwhile
04
🧺

Collections

Lists, tuples, sets, dictionaries, slicing, common methods and when to use each.

listdictset
Part 2 — Build Skill
05
🧩

Functions & Modules

def, return, parameters, default values, *args, **kwargs, import modules.

defreturnimport
06
📄

Files & Error Handling

Read/write files safely with with open(), JSON basics, try / except / finally.

openjsontry
07
🏗️

OOP Classes

class, __init__, methods, properties, inheritance, encapsulation basics.

classselfinherit
08

CLI Mini Project

Todo app project: menu, add/list/done/delete, JSON file save, clean functions.

projecttodojson
Part 3 — Python Frameworks
09
🦄

Django

Full-stack web framework — ORM, admin panel, templates, forms, DRF. "Batteries included" approach.

ORMadminmigrateDRF
10
🌶️

Flask

Micro-framework — routes, Jinja2, SQLAlchemy, blueprints, JSON API. Lightweight and flexible.

routesJinja2jsonifyBlueprint
11

FastAPI

High-performance async API — Pydantic validation, auto Swagger docs, JWT auth, dependency injection.

PydanticasyncSwaggerJWT

📋 Python Quick Cheat Sheet

Variables

name = "Mg Mg"
age = 20
price = 9.99
active = True

Condition

if age >= 18:
  print("adult")
else:
  print("young")

Loop

for i in range(5):
  print(i)

while running:
  break

Function

def greet(name):
  return f"Hi {name}"

📌 Study Checklist