0

I am not able to understand functions in programming, plz share some notes

31st Jul 2020, 12:11 PM
psy byte
psy byte - avatar
3 Answers
31st Jul 2020, 12:42 PM
shubham kumar
shubham kumar - avatar
31st Jul 2020, 12:42 PM
shubham kumar
shubham kumar - avatar
+ 1
psy byte Functions are really simple when you get the hang of it. It can work with or without parameters passed to it. It has 3(that I know of) ways to output results with different ways to request for them. Note the way I call the functions below: def func() print("output") func() def func() return "output" print(func()) Parameters are what are between the parentheses in the definition... def func(a,b) where a and b is a value you must provide when calling the method. def func2 (a, b): print(a + b) func2(5,9) Output: 14 Summary is this: Go through the lesson provided below and find a good book for more knowledge on the subject. https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2285/?ref=app Happy Coding 😀😀
31st Jul 2020, 12:47 PM
Tomiwa Joseph
Tomiwa Joseph - avatar