First-year UG · career switchers
Foundation — language core
Original RSIL core covering the full union of a language tutorial’s opening map plus a types course: why Python, how it launches and runs, names and references, numbers, strings, lists, dicts, statements, decisions, loops, functions and a first composed campus tool.
Your progress (this browser)
0%
0 of 16 lessons complete
- Start
Lesson 1 · 50 min
Why campus teams choose Python
Accounts wants a GST summary by 06:00. The robotics lab wants the same language on a kit. A web intern wants to glue an API. This lesson is …
- Start
Lesson 2 · 52 min
The interpreter and every way you launch it
Prompt, file, python -m, a double-click, a shebang on Linux, IDLE. Same language, different doors. Plus: UTF-8 in the source file, and argv …
- Start
Lesson 3 · 48 min
What actually runs: bytecode, CPython, frozen apps
You type a file. Something compiles it, something executes it. CPython is the usual engine on a college PC. Other engines and ‘frozen’ insta…
- Start
Lesson 4 · 52 min
Names, objects and shared references
gross is a label. 48000 is an object. Two names can point at the same list — then append in one place surprises the other. == asks ‘same con…
- Start
Lesson 5 · 52 min
Numbers, remainder, bools
Seat counts are ints. GST maths can produce a fractional rupee you must not treat as a till total. True and False are the answers to compari…
- Start
Lesson 6 · 50 min
Strings: quotes, glue and templates
Invoice lines, Windows paths and email subjects are text. Quotes, concatenation and f-strings are the daily tools. Escapes, raw strings and …
- Start
Lesson 7 · 50 min
String index, methods and immutability
You cannot change the third character of a PAN-like code in place. You build a new string. Index 0 is the first character; methods like uppe…
- Start
Lesson 8 · 52 min
Lists: index, append, nest, mutate
A day’s UPI rows is a numbered tray. You can replace the third amount. You can put a list inside a list for a 2×2 lab grid. Index 0 is still…
- Start
Lesson 9 · 50 min
Dictionaries as labelled records
A student, a SKU and a JSON payload share labelled fields. employee["pf"] survives last year’s Excel column shuffle. Missing keys are a poli…
- Start
Lesson 10 · 50 min
Statements, indentation, assignment, print
Python groups with indent, not braces. Assignment stores; print shows. Unpacking two names from a pair is the same idea as two lines of assi…
- Start
Lesson 11 · 50 min
if / elif / else and what counts as true
Late-fee bands must not overlap. == asks; = stores. Empty lists and 0 are the usual ‘no’ in Python; a clerk-facing function should still ret…
- Start
Lesson 12 · 50 min
while, for and range
while waits on a condition you must change. for walks a tray you have. range(n) is n turns from 0. A running total is every batch job in min…
- Start
Lesson 13 · 50 min
pass, early stop, and else on loops
pass is a legal empty body. break/continue are laptop spellings of ‘stop now’ and ‘skip this turn’. A loop’s else runs when you never stoppe…
- Start
Lesson 14 · 52 min
Functions: return, None and a one-line spec
def names a contract. return hands a value back. Forget return and callers get nothing useful (None on a laptop). A first-line string is a d…
- Start
Lesson 15 · 50 min
Arguments, defaults and house style
Order is easy to swap. Put meaning in names; keep GST in CONFIG (the sandbox twin of a default argument). Four-space indent and one quote st…
- Start
Lesson 16 · 55 min
First composed campus program
Attendance: a list of marks, a pass rule, a count, a line a clerk can read. Nothing new — names, lists, if, loop, function — in one file-sha…