You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cheatsheet/main.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,4 +37,4 @@ For example, we are developing a script designed to be used as a module, we shou
37
37
1. Every Python module has it’s `__name__` defined and if this is `__main__`, it implies that the module is run standalone by the user, and we can do corresponding appropriate actions.
38
38
2. If you import this script as a module in another script, the **name** is set to the name of the script/module.
39
39
3. Python files can act as either reusable modules, or as standalone programs.
40
-
4. if `__name__ == “main”:` is used to execute some code only if the file run directly, and is not being imported.
40
+
4.`if __name__ == "__main__":` is used to execute some code only if the file is run directly, and is not being imported.
0 commit comments