0

What is def

31st Jul 2018, 2:21 PM
saburna
3 odpowiedzi
+ 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.
1st Aug 2018, 11:33 AM
Maninder $ingh
Maninder $ingh - avatar
0
keyword for defining a function def foo(): return 1
31st Jul 2018, 2:22 PM
Matthias
Matthias - avatar