Skip to content

1.0.5

Choose a tag to compare

@gvzgithub gvzgithub released this 27 Apr 11:50
· 13 commits to main since this release
cf7fdd7

This time the problem was successfully solved: the local variable 'invalid_choice_msg' might be referenced before assignment.

This time, I defined all the required variables outside the function and then assigned them inside the function.

In this version, I define all the required variables outside the function and set them to empty strings. Then, inside the main() function, we use the global keyword to declare these variables as global variables so that they can be assigned values inside the function.

Now, no matter which language the user chooses, the corresponding variables will be correctly assigned and there will be no "local variable may be referenced before assignment" errors.