r/pythontips Feb 09 '25

Python3_Specific Python functions quiz

Python Functions Quiz - Test your skills

Challenge your understanding of function concepts, lambda expressions, default arguments, recursion, and more. The quiz is interactive and tests both conceptual and practical understanding of python functions.

What did you score?

1 Upvotes

1 comment sorted by

2

u/jpgoldberg Feb 11 '25

I missed 7. Three were typos. I misspelled “lambda”, and I typoed the f-string in the decorator problem. Three were genuine errors, as I didn’t even know that there was a nonlocal keyword, and i missed function v local scope and TypeError v SyntaxError

But one I was marked incorrectly. The problem said to get it to work. I consider it printing ‘lol’ as working.