Python · Modules & Packages
What does this print when run as `python prog.py`? ``` def main(): print("running") if __name__ == "__main__": main() ``` And what prints if instead another file does `import prog`?
Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.
