mirror of
https://gitea.com/Lerking/python-crash-course.git
synced 2026-01-08 17:50:07 +01:00
Add basics/naming_convention.py
This commit is contained in:
11
basics/naming_convention.py
Normal file
11
basics/naming_convention.py
Normal file
@@ -0,0 +1,11 @@
|
||||
"""
|
||||
Basic naming conventions in python
|
||||
"""
|
||||
|
||||
# Do's
|
||||
# Use lowercase and snakecase for functions and methods i.e. def save_file()
|
||||
def save_file(file: str) -> None:
|
||||
with open(file, "w") as F:
|
||||
F.write()
|
||||
|
||||
#Dont's
|
||||
Reference in New Issue
Block a user