Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pierian-data

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: pierian-data/complete-python-3-bootcamp
Path: blob/master/06-Modules and Packages/01-Name_and_Main/two.py
Views: 648
1
import one
2
3
print("top-level in two.py")
4
5
one.func()
6
7
if __name__ == "__main__":
8
print("two.py is being run directly")
9
else:
10
print("two.py is being imported into another module")
11
12