STEP 13: “Declare a generate_password function and write all your code except the import lines inside the function body.”
BUG: I declare the function generate_password without the previously declared variables being inside it, and the code passes. It should not pass, because in step 14 you can see those same variables inside the function.
SOLUTION: You should be forced to declare the function and then put the previously declared variables inside that same function, as it appears on step 14.