Dec-27-2020, 03:56 AM
In the posed code both variants print a = 1. I do not think the code you posted accurately represents the code you are trying to debug. Please post the code that is not printing a = 1. Configure the code to not print = 1. Run the code on your notebook to verify it does not print a = 1. Copy the exact and post the code without any further edits.
When you post the code use python tags (use the button provided in the editor window) to retain indentation.
When you post the code use python tags (use the button provided in the editor window) to retain indentation.