← All courses
LANG PY · 3 credits
Python for Beginners
Build Python properly from zero: values and types, strings, numbers and input, conditionals, loops, lists, dictionaries, tuples, sets, functions, and error handling, capped with three mini-projects (number guessing, word counter, gradebook) that combine everything into complete programs.
Your progress0/32 lessons · 0%
What you'll learn
- ✓Read and write Python that uses every core type: int, float, str, bool, list, dict, tuple, and set
- ✓Slice, search, and transform strings with indexing, methods, and f-strings
- ✓Control program flow with elif chains, logical operators, truthiness, for/range, while, break, and continue
- ✓Apply the four loop patterns (sum, count, find, build) to solve problems over any collection
- ✓Decompose problems into functions with parameters and return values, and reason about variable scope
- ✓Read a traceback to locate a bug, and use try/except to handle bad input gracefully
- ✓Avoid the classic traps: float rounding error, list aliasing, sort() returning None, and input() always returning a string