What Def mening and way of use in python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answer
+ 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