25 simple function definition
def sayHello():
print("Hello")
with arguments
def sayHello2(name):
print("Hello",name)
- you must provide argument when calling this function otherwise an error will occur.
def sayHello():
print("Hello")
with arguments
def sayHello2(name):
print("Hello",name)