- 1
What is the use of def in python?
Basics please
5 Antworten
+ 4
its used to declare a function,
lets say your program needs to be adding two integers and you dont want to be using a+b
You can just create a function which u can evoke anytime in yiur program eg.
def plus(a,b):
return a+b
this is just an example in python..and you can do really cool stuffs with function
+ 2
That is all in the tutorial you started - be patient just a while longer. ;-)
+ 1
#Anønymøus Thanks
0
HonFu .I have a test tomorrow. Can you suggest me a link?
0
you are welcome bro