0
Help me on def function
Guys what is the def function and when it can be used
2 Respostas
+ 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! :)
+ 1
thank u bruh