Exercise: Python Closure
The function
secret_keeper
holds a secret that is only revealed by its inner function reveal
. In other words, we are creating a closure. However, there's a small error. Fix the mistake to turn the code into a fully working closure.Premium
Python
Setting up Python environment...
Output