+ 1
Anyone help undestand the def function
2 Antworten
+ 2
The keyword def is used to declare the function
def function_name(parameters):
# What the function does goes here
return result
+ 1
def is reserved word for defining functions
Like
def solve ():
#code
solve()