0
What is def
3 Antworten
+ 1
For creating a function.def use when you want to create new function. e.g.
def h():
return 5
here def is for define a function and h is name of function and function return a 5 here.
0
keyword for defining a function
def foo():
return 1