Function

3 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$49.99
List Price:  $69.99
You save:  $20
€43.99
List Price:  €61.60
You save:  €17.60
£37.42
List Price:  £52.39
You save:  £14.97
CA$69.15
List Price:  CA$96.82
You save:  CA$27.66
A$78.18
List Price:  A$109.46
You save:  A$31.28
S$65.30
List Price:  S$91.43
You save:  S$26.12
HK$387.73
List Price:  HK$542.86
You save:  HK$155.12
CHF 41.24
List Price:  CHF 57.75
You save:  CHF 16.50
NOK kr518.26
List Price:  NOK kr725.61
You save:  NOK kr207.34
DKK kr328.44
List Price:  DKK kr459.85
You save:  DKK kr131.40
NZ$84.43
List Price:  NZ$118.21
You save:  NZ$33.78
د.إ183.61
List Price:  د.إ257.07
You save:  د.إ73.45
৳6,075.37
List Price:  ৳8,506
You save:  ৳2,430.63
₹4,224.25
List Price:  ₹5,914.29
You save:  ₹1,690.04
RM215.75
List Price:  RM302.06
You save:  RM86.31
₦80,136.96
List Price:  ₦112,198.16
You save:  ₦32,061.20
₨14,052.18
List Price:  ₨19,674.18
You save:  ₨5,622
฿1,670.16
List Price:  ฿2,338.36
You save:  ฿668.20
₺1,924.49
List Price:  ₺2,694.45
You save:  ₺769.95
B$281.58
List Price:  B$394.24
You save:  B$112.65
R930.55
List Price:  R1,302.84
You save:  R372.29
Лв86.06
List Price:  Лв120.49
You save:  Лв34.43
₩71,075.59
List Price:  ₩99,511.52
You save:  ₩28,435.92
₪181.62
List Price:  ₪254.28
You save:  ₪72.66
₱2,791.29
List Price:  ₱3,908.03
You save:  ₱1,116.73
¥7,152.05
List Price:  ¥10,013.44
You save:  ¥2,861.39
MX$976.77
List Price:  MX$1,367.56
You save:  MX$390.78
QR182.01
List Price:  QR254.83
You save:  QR72.82
P682.36
List Price:  P955.36
You save:  P273
KSh6,461.20
List Price:  KSh9,046.20
You save:  KSh2,585
E£2,539.18
List Price:  E£3,555.06
You save:  E£1,015.87
ብር6,591.18
List Price:  ብር9,228.18
You save:  ብር2,637
Kz45,590.88
List Price:  Kz63,830.88
You save:  Kz18,240
CLP$47,237.55
List Price:  CLP$66,136.35
You save:  CLP$18,898.80
CN¥364.67
List Price:  CN¥510.57
You save:  CN¥145.90
RD$2,933.33
List Price:  RD$4,106.90
You save:  RD$1,173.57
DA6,626.94
List Price:  DA9,278.25
You save:  DA2,651.30
FJ$113.07
List Price:  FJ$158.31
You save:  FJ$45.24
Q385.11
List Price:  Q539.19
You save:  Q154.07
GY$10,461.12
List Price:  GY$14,646.40
You save:  GY$4,185.28
ISK kr6,419.71
List Price:  ISK kr8,988.11
You save:  ISK kr2,568.40
DH461.54
List Price:  DH646.19
You save:  DH184.65
L858.12
List Price:  L1,201.44
You save:  L343.32
ден2,706.43
List Price:  ден3,789.22
You save:  ден1,082.79
MOP$399.48
List Price:  MOP$559.31
You save:  MOP$159.82
N$929.36
List Price:  N$1,301.18
You save:  N$371.82
C$1,840.11
List Price:  C$2,576.31
You save:  C$736.19
रु6,768.73
List Price:  रु9,476.77
You save:  रु2,708.03
S/183.28
List Price:  S/256.61
You save:  S/73.33
K206.10
List Price:  K288.57
You save:  K82.46
SAR187.50
List Price:  SAR262.52
You save:  SAR75.01
ZK1,396.33
List Price:  ZK1,954.98
You save:  ZK558.64
L219.02
List Price:  L306.65
You save:  L87.62
Kč1,095.88
List Price:  Kč1,534.32
You save:  Kč438.44
Ft17,793.41
List Price:  Ft24,912.20
You save:  Ft7,118.79
SEK kr482.10
List Price:  SEK kr674.98
You save:  SEK kr192.88
ARS$58,235.07
List Price:  ARS$81,533.76
You save:  ARS$23,298.69
Bs344.69
List Price:  Bs482.60
You save:  Bs137.90
COP$211,058.07
List Price:  COP$295,498.18
You save:  COP$84,440.11
₡25,282.35
List Price:  ₡35,397.31
You save:  ₡10,114.96
L1,290.42
List Price:  L1,806.69
You save:  L516.27
₲398,584.89
List Price:  ₲558,050.74
You save:  ₲159,465.85
$U2,104.70
List Price:  $U2,946.75
You save:  $U842.04
zł187.87
List Price:  zł263.03
You save:  zł75.16
Already have an account? Log In

Transcript

Okay in our programming we have this function. So for function we can use it to reuse, reuse our code in Alessia ah different parts of these, our programming code. So let's say I create a function cream Hello okay to question okay. I can write something up a Hello okay. I can call this function in hello world. I can call you a few times in hello world then a Hello World okay then I can say so that all Ctrl A and then run the code Okay so I print three times all over.

So, for calling this our nation we must always have expansion here first then we call this function after these are after expansion integral here he cannot police a print aloha apologies machine you know called is a function above here will give us an error okay. So in this function we know so I have some of the parameters and some some of the parameters and then some return values okay so let's say I want to create a mean function I can do something like this. e eight as last and the Then I will return I read the lower one. So a less than b i will return a okay I say put a bracket here then else else I can do something like these three be okay then I can call this function mean I see some number and then some number and then Ctrl A and run so, I get 1221 which is the minimum between these two number okay what is function means C is 1221 is a pasta these are parameters here and then this value is This parameter here is a i want to i if this value 1221 is less than b 123123 then return a 1221 as we return these are 123123.

So, this is a way to write this function. Previously we write the print HelloWorld function, we do not put an essay on any of these parameters or return any values. When we write this minimum function we put in some parameters and return some values. So, in our programming, when we write function, whether we put in these parameters our return values is up to

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.