0

Help me on def function

Guys what is the def function and when it can be used

2nd Dec 2018, 1:57 PM
ANTIDOTE
ANTIDOTE - avatar
2 Respuestas
+ 2
A function is a part of code that you can execute again and again in your code, by giving it a name. You write: def name(): And then your code here. ... ... Now whenever you want to execute this part of code, you can write: name() It's similar to using print(), input(), sum() or whatever. For more details, go on with the tutorial! :)
2nd Dec 2018, 2:37 PM
HonFu
HonFu - avatar
+ 1
thank u bruh
2nd Dec 2018, 3:47 PM
ANTIDOTE
ANTIDOTE - avatar