Python Fundamentals
Learn to program with Python from scratch: values and variables, decisions, loops, lists, dictionaries, strings, functions and error handling. Every code example and exercise in this course is executed and verified automatically.
What you will learn
- Read and predict the output of small Python programs
- Use variables, arithmetic, conditions and loops
- Store and process data with lists, dictionaries and strings
- Write reusable functions with parameters and return values
- Find and fix common bugs and handle errors with try/except
Prerequisites
- No programming experience needed
Learning path
1 First steps
2 Decisions and loops
3 Lists, dictionaries, strings
4 Functions and errors
Practical project: Vocabulary quiz in the terminal
Build a small quiz program (run it locally with python3 quiz.py):
- Store 10 word pairs in a dictionary (English → German).
- Loop over the dictionary, ask with
input(), compare case-insensitively with.strip().lower(). - Count correct answers and collect mistakes in a list.
- At the end print the score as a percentage with an f-string (
{pct:.0f}%) and repeat only the mistakes. - Put the quiz logic in a function
run_quiz(pairs)that returns the list of mistakes.
Extension: load the word pairs from a text file and handle FileNotFoundError.
References
Related courses
JavaScript Fundamentals
The language of the web, from the ground up: values, types and operators, control flow, functions and arrow functions, arrays with…
SQL Fundamentals: Querying Relational Databases
Learn SQL with a realistic shop database: SELECT and WHERE, sorting, aggregate functions, GROUP BY and HAVING, joins, subqueries, and changing data…
Git Fundamentals: Version Control
Track changes, undo mistakes and collaborate with Git. Understand the working tree, staging area and commits, use branches and merges, resolve…