week-11.json
json Container
READ_ONLY_ACCESS[ { "id": "python-w11-000", "front": "Week 11 Diagnostic: What is the purpose of the `if __name__ == '__main__':` idiom in Python scripts?", "back": "Answer: B — `__name__` is `'__main__'` only when the script is run directly. When imported into another script, `__name__` is set to the module name." }, { "id": "python-w11-001", "front": "Week 11 Diagnostic: If a script is run as `python script.py data.csv 100`, what is the value of `sys.argv[1]`?", "back": "Answer: B — `sys.argv[0]` is the script name `'script.py'`; `sys.argv[1]` is the first CLI argument `'data.csv'`." } ]