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/one.py
Views: 648
1
def func():
2
print("func() ran in one.py")
3
4
print("top-level print inside of one.py")
5
6
if __name__ == "__main__":
7
print("one.py is being run directly")
8
else:
9
print("one.py is being imported into another module")
10
11