+ 2
Please pals what is the function of (def) in python programming, please someone should help me out
the (def)
2 Antworten
0
whenever you see or use the python keyword "def", it indicates the beginning of function definition;
followed by the name of the function
You use def to explicitly create ur own functions/methods instead of relying only on python built-in methods. The def also distinguishes functions from normal variables
eg:
def funtion_name():
pass
creates a function named function_name.