What is Python?
Python is a language for writing programs. You type instructions in a .py file, the same way you write steps in a notebook. Save it, run python hello.py, and the computer follows those steps — print a line, add marks, read a file. Don’t start with buzzwords. Start with: we write instructions, Python runs them.
You do not compile like Java’s javac every day. The interpreter reads the file and runs it. The same script can run on Windows at home, Linux in college, or a company laptop — if Python is installed. That is why people use it for scripts, websites, data work, and ML tools.
Let’s take this on the board. Smallest program: print("Hello Python"). Save as hello.py. Run: python hello.py (on Windows, py hello.py often works). If you see Hello Python, install and PATH are fine. No class, no main(), no semicolon. Freshers coming from Java keep looking for public static void main. It is not there.
Variables do not need a type on the left: age = 21, name = "Asha". Types still exist (int, str, list) — they are checked when the line runs. Indentation is not decoration. The if block lives under the colon because it is indented. Wrong indent → IndentationError. That is syntax, not style.
Where it is used for real: Flask/Django websites, pandas for tables, pytest for tests, small automation (rename files, read Excel). Companies hire Python. It is not “only for beginners”. Pure Python can be slower than C for heavy CPU — say that honestly if asked.
Learn in this order: print and variables → if / for → list and dict → def → class → try/except → files. If you jump to ML on day two, you will only copy notebooks. If you can print your name, even/odd, and a tiny Student class, you are actually learning Python.
What is Python? — output — Hello Python. If this prints, Python is installed and PATH is fine.
hello.py
print("Hello Python")
│
▼
python hello.py
│
▼
interpreter
│
├── Windows
├── Linux
└── Mac
▼
Hello PythonSay: readable language, run with python file.py, name one real use (web or data). Mention indent is syntax.