+ 9

What Def mening and way of use in python?

explain with an example.

2nd Sep 2018, 1:49 PM
Hari Krishna Sahu
Hari Krishna Sahu - avatar
1 Réponse
+ 18
It is the keyword for defining functions. def add(x, y): return x + y print(add(3, 5)) # output: 8
2nd Sep 2018, 2:21 PM
Eduardo Petry
Eduardo Petry - avatar