+ 2

Please pals what is the function of (def) in python programming, please someone should help me out

the (def)

2nd Apr 2018, 4:43 PM
Victor Nwosunneji
Victor Nwosunneji - avatar
2 ответов
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.
3rd Apr 2018, 11:33 PM
E_E Mopho
E_E Mopho - avatar