Skip to content

Commit 9f63100

Browse files
authored
Merge pull request #397 from pranayat/patch-1
Fix typo
2 parents 75fe7e6 + fa95e7d commit 9f63100

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/cheatsheet/main.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ For example, we are developing a script designed to be used as a module, we shou
3737
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.
3838
2. If you import this script as a module in another script, the **name** is set to the name of the script/module.
3939
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

Comments
 (0)