0

What is def for in Python?

22nd Jul 2018, 4:16 PM
Martin Tembo
Martin Tembo - avatar
2 Réponses
+ 1
Declaring a class or a function.
22nd Jul 2018, 4:48 PM
Anthony Perez
0
Def is a keyword, which declares a function. def equals(a, b): return a == b equals(4, 5) //returns False
22nd Jul 2018, 4:21 PM
Martin Bulíř