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
+ 1
Take help from this website:- https://www.w3schools.com/python/
31st Jul 2020, 12:42 PM
shubham kumar
shubham kumar - avatar
+ 1
https://www.w3schools.com/python/python_functions.asp
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/Python/2285/?ref=app Happy Coding 😀😀
31st Jul 2020, 12:47 PM
Tomiwa Joseph
Tomiwa Joseph - avatar