The quiz where the difficulty automagically adapts to the player's Python knowledge
This is a question page. You can use this page to bookmark a question. Start a new quiz!
Question #77
When the Python interpreter runs a file directly, it assigns the value __main__ to the variable __name__ for that source file. If the file foo.py is imported from a different file, then the interpreter will assign the variable __name__ of foo.py to foo . (freecodecamp.org/news/whats-in-a-python-s-name-506262fe61e8)
Wich value does the Python interpreter assign to __name__ when running the source file https://t.co/WA4tHQeT7W directly?
— The Python Quiz (@thepythonquiz) June 21, 2020
__module_foo__
__foo__
__main__#python #python3 #pythonprogramming #learnpython
Question difficulty: π΅π΅π΅π΅π΅