# give a name of function after def
1.def sayhi():
#put the statement in the function
2.print(“hello world”)
#call function by name:
3.sayhi()
Output:
Hello world
# give a name of function after def
1.def sayhi():
#put the statement in the function
2.print(“hello world”)
#call function by name:
3.sayhi()
Output:
Hello world