function/class synatax

This commit is contained in:
dilanbhalla
2020-06-25 11:39:09 -07:00
parent a2677f8df0
commit dc58f6fa87
10 changed files with 118 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
class Test:
# BAD, do not start function name with uppercase letter
def HelloWorld(self):
print("hello world")
# GOOD, function name starts with lowercase letter
def hello_world(self):
print("hello world")