From f4a00cb09215e2ca64284c67d7dc05a1f66c4c1a Mon Sep 17 00:00:00 2001 From: Lerking Date: Sun, 22 Sep 2024 09:33:04 +0000 Subject: [PATCH] Add basics/naming_convention.py --- basics/naming_convention.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 basics/naming_convention.py diff --git a/basics/naming_convention.py b/basics/naming_convention.py new file mode 100644 index 0000000..ece0df7 --- /dev/null +++ b/basics/naming_convention.py @@ -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