Python Quiz: functions, files and exceptions
Move up to the intermediate level in Python: comprehensions, default arguments, **kwargs, slicing, self, venv, except, with, sets and f-strings.
Question preview
- What does [n * n for n in [1, 2, 3]] return?
- With def f(a, b=2): return b, what does f(1) return?
- What does the **kwargs parameter contain inside a function?
… and 7 more questions to discover by playing.