+ 2

Van someone explain def in Python? Thanks!

What does def do in Python? What is it useful for? How is it used? Thanks :)

12th Nov 2017, 3:52 AM
Nitay Eshed
Nitay Eshed - avatar
2 Respostas
+ 9
12th Nov 2017, 3:54 AM
qwerty
qwerty - avatar
0
def sum(a, b): print(a+b) sum(1, 2) # 3
12th Nov 2017, 4:57 AM
Vitalij Bredun ♡ Python Petersburg
Vitalij Bredun ♡ Python Petersburg - avatar