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
€42.30
List Price:  €59.22
You save:  €16.92
£36.71
List Price:  £51.40
You save:  £14.68
CA$68.41
List Price:  CA$95.78
You save:  CA$27.37
A$71.27
List Price:  A$99.78
You save:  A$28.51
S$63.63
List Price:  S$89.09
You save:  S$25.45
HK$390.61
List Price:  HK$546.89
You save:  HK$156.27
CHF 38.77
List Price:  CHF 54.28
You save:  CHF 15.51
NOK kr484.43
List Price:  NOK kr678.24
You save:  NOK kr193.81
DKK kr316.04
List Price:  DKK kr442.49
You save:  DKK kr126.44
NZ$83.10
List Price:  NZ$116.35
You save:  NZ$33.25
د.إ183.58
List Price:  د.إ257.03
You save:  د.إ73.45
৳6,095.86
List Price:  ৳8,534.69
You save:  ৳2,438.83
₹4,528.91
List Price:  ₹6,340.84
You save:  ₹1,811.92
RM197.28
List Price:  RM276.21
You save:  RM78.93
₦68,175.25
List Price:  ₦95,450.80
You save:  ₦27,275.55
₨13,937.81
List Price:  ₨19,514.05
You save:  ₨5,576.24
฿1,572.09
List Price:  ฿2,201.06
You save:  ฿628.96
₺2,180.18
List Price:  ₺3,052.43
You save:  ₺872.25
B$260.80
List Price:  B$365.14
You save:  B$104.34
R802.06
List Price:  R1,122.95
You save:  R320.89
Лв82.73
List Price:  Лв115.84
You save:  Лв33.10
₩73,175.36
List Price:  ₩102,451.36
You save:  ₩29,276
₪155.50
List Price:  ₪217.71
You save:  ₪62.21
₱2,925.03
List Price:  ₱4,095.29
You save:  ₱1,170.25
¥7,858.45
List Price:  ¥11,002.46
You save:  ¥3,144.01
MX$863
List Price:  MX$1,208.27
You save:  MX$345.27
QR182.03
List Price:  QR254.85
You save:  QR72.82
P659.89
List Price:  P923.90
You save:  P264.01
KSh6,429.85
List Price:  KSh9,002.30
You save:  KSh2,572.45
E£2,342.53
List Price:  E£3,279.73
You save:  E£937.20
ብር7,748.81
List Price:  ብር10,848.96
You save:  ብር3,100.14
Kz45,597.53
List Price:  Kz63,840.19
You save:  Kz18,242.66
CLP$43,035.89
List Price:  CLP$60,253.69
You save:  CLP$17,217.80
CN¥346.87
List Price:  CN¥485.65
You save:  CN¥138.77
RD$3,145.80
List Price:  RD$4,404.37
You save:  RD$1,258.57
DA6,479.89
List Price:  DA9,072.37
You save:  DA2,592.47
FJ$110.45
List Price:  FJ$154.64
You save:  FJ$44.19
Q382.30
List Price:  Q535.26
You save:  Q152.95
GY$10,428.37
List Price:  GY$14,600.55
You save:  GY$4,172.18
ISK kr6,134.27
List Price:  ISK kr8,588.47
You save:  ISK kr2,454.20
DH457.58
List Price:  DH640.66
You save:  DH183.07
L849.84
List Price:  L1,189.85
You save:  L340
ден2,605.71
List Price:  ден3,648.21
You save:  ден1,042.49
MOP$401.11
List Price:  MOP$561.59
You save:  MOP$160.47
N$804.14
List Price:  N$1,125.86
You save:  N$321.72
C$1,834.38
List Price:  C$2,568.28
You save:  C$733.89
रु7,223.89
List Price:  रु10,114.02
You save:  रु2,890.13
S/167.71
List Price:  S/234.80
You save:  S/67.09
K213.75
List Price:  K299.26
You save:  K85.51
SAR187.44
List Price:  SAR262.44
You save:  SAR74.99
ZK928.35
List Price:  ZK1,299.76
You save:  ZK371.41
L215.47
List Price:  L301.68
You save:  L86.20
Kč1,024.99
List Price:  Kč1,435.08
You save:  Kč410.08
Ft15,981.80
List Price:  Ft22,375.80
You save:  Ft6,394
SEK kr451.06
List Price:  SEK kr631.53
You save:  SEK kr180.46
ARS$71,889.72
List Price:  ARS$100,651.37
You save:  ARS$28,761.64
Bs344.42
List Price:  Bs482.22
You save:  Bs137.79
COP$184,939.45
List Price:  COP$258,930.03
You save:  COP$73,990.57
₡24,710.67
List Price:  ₡34,596.92
You save:  ₡9,886.24
L1,322.48
List Price:  L1,851.58
You save:  L529.10
₲329,332.85
List Price:  ₲461,092.35
You save:  ₲131,759.49
$U1,917.12
List Price:  $U2,684.12
You save:  $U767
zł178.45
List Price:  zł249.84
You save:  zł71.39
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.