Nov-05-2019, 12:07 PM
also, as a side recommendations:
- you don't need
f.close()
on line 4 and 7 -with
context manager closes the file for you
- you don't need line 11.
enter_username
is not global variable. And as a general rule you should avoid using global variables anyway.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs