** def function name (): ** □□ ** Process to be executed **
def hello():
print("hello")
** Function name () **
def hello():
print("hello")
hello()
Separate the arguments with commas
def hello(name , greeting):
print(name + "Mr." + greeting)
hello("tanaka" , "Hello")
Output result Mr. tanaka, Hello
Recommended Posts