0
I am not able to understand functions in programming, plz share some notes
3 Answers
+ 1
Take help from this website:-
https://www.w3schools.com/JUMP_LINK__&&__python__&&__JUMP_LINK/
+ 1
+ 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 đđ