Functions

4 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.91
List Price:  €60.08
You save:  €17.16
£37.53
List Price:  £52.55
You save:  £15.01
CA$69.10
List Price:  CA$96.75
You save:  CA$27.64
A$75.33
List Price:  A$105.46
You save:  A$30.13
S$64.81
List Price:  S$90.74
You save:  S$25.93
HK$388.91
List Price:  HK$544.51
You save:  HK$155.59
CHF 40.20
List Price:  CHF 56.29
You save:  CHF 16.08
NOK kr505.89
List Price:  NOK kr708.28
You save:  NOK kr202.39
DKK kr320.51
List Price:  DKK kr448.74
You save:  DKK kr128.23
NZ$86.42
List Price:  NZ$120.99
You save:  NZ$34.57
د.إ183.58
List Price:  د.إ257.03
You save:  د.إ73.45
৳6,113.36
List Price:  ৳8,559.19
You save:  ৳2,445.83
₹4,502.96
List Price:  ₹6,304.51
You save:  ₹1,801.54
RM205.60
List Price:  RM287.86
You save:  RM82.26
₦72,527.49
List Price:  ₦101,544.29
You save:  ₦29,016.80
₨14,008.35
List Price:  ₨19,612.81
You save:  ₨5,604.46
฿1,592.10
List Price:  ฿2,229.07
You save:  ฿636.97
₺2,126.94
List Price:  ₺2,977.89
You save:  ₺850.94
B$272.95
List Price:  B$382.15
You save:  B$109.20
R849.08
List Price:  R1,188.78
You save:  R339.70
Лв83.84
List Price:  Лв117.39
You save:  Лв33.54
₩73,331.99
List Price:  ₩102,670.66
You save:  ₩29,338.66
₪161.16
List Price:  ₪225.63
You save:  ₪64.47
₱2,953.13
List Price:  ₱4,134.62
You save:  ₱1,181.49
¥7,772.29
List Price:  ¥10,881.83
You save:  ¥3,109.54
MX$909.54
List Price:  MX$1,273.43
You save:  MX$363.88
QR182.13
List Price:  QR255
You save:  QR72.86
P663.85
List Price:  P929.44
You save:  P265.59
KSh6,461.20
List Price:  KSh9,046.20
You save:  KSh2,585
E£2,375.40
List Price:  E£3,325.76
You save:  E£950.35
ብር7,750.40
List Price:  ብር10,851.18
You save:  ብር3,100.78
Kz45,596.27
List Price:  Kz63,838.43
You save:  Kz18,242.16
CLP$46,150.76
List Price:  CLP$64,614.76
You save:  CLP$18,464
CN¥353.37
List Price:  CN¥494.75
You save:  CN¥141.37
RD$3,198.04
List Price:  RD$4,477.52
You save:  RD$1,279.47
DA6,501.02
List Price:  DA9,101.95
You save:  DA2,600.93
FJ$112.82
List Price:  FJ$157.96
You save:  FJ$45.13
Q382.74
List Price:  Q535.88
You save:  Q153.13
GY$10,453.89
List Price:  GY$14,636.29
You save:  GY$4,182.39
ISK kr6,394.22
List Price:  ISK kr8,952.42
You save:  ISK kr2,558.20
DH461.50
List Price:  DH646.14
You save:  DH184.63
L847.58
List Price:  L1,186.68
You save:  L339.09
ден2,641.79
List Price:  ден3,698.71
You save:  ден1,056.92
MOP$400.68
List Price:  MOP$560.99
You save:  MOP$160.30
N$846.84
List Price:  N$1,185.64
You save:  N$338.80
C$1,838.84
List Price:  C$2,574.53
You save:  C$735.68
रु7,188.05
List Price:  रु10,063.85
You save:  रु2,875.79
S/167.95
List Price:  S/235.15
You save:  S/67.19
K212.02
List Price:  K296.85
You save:  K84.82
SAR187.65
List Price:  SAR262.73
You save:  SAR75.07
ZK1,155.22
List Price:  ZK1,617.41
You save:  ZK462.18
L218.38
List Price:  L305.75
You save:  L87.37
Kč1,040.06
List Price:  Kč1,456.17
You save:  Kč416.10
Ft16,419.77
List Price:  Ft22,988.99
You save:  Ft6,569.22
SEK kr469.96
List Price:  SEK kr657.98
You save:  SEK kr188.02
ARS$71,684.12
List Price:  ARS$100,363.51
You save:  ARS$28,679.38
Bs345.28
List Price:  Bs483.43
You save:  Bs138.14
COP$189,872.89
List Price:  COP$265,837.24
You save:  COP$75,964.35
₡24,407.98
List Price:  ₡34,173.13
You save:  ₡9,765.14
L1,316.03
List Price:  L1,842.54
You save:  L526.51
₲343,661.84
List Price:  ₲481,154.08
You save:  ₲137,492.23
$U1,953.05
List Price:  $U2,734.43
You save:  $U781.37
zł181.48
List Price:  zł254.09
You save:  zł72.60
Already have an account? Log In

Transcript

Okay, in Python programming we have this function omega so I function for these C for Python programming functions allow us to let's see how we use our use our coding course in the bytom project. So to let's say, create a function can do something like this. In Python, we do something that is sci fi. I say, Hello. Okay. Then play.

Hello. Okay. Okay, then I can call this function Hello a few times in our pike copes. Okay, let's say I run this program as you'll see to Hello here. So I can also call Hello in some other place on the whole Python code. So we can record this are we using programming?

And we can also I see, for petitions we can in parameters or what they call the arguments. So I can enter in se x. Okay, then I can go and then maybe James and I maybe can Okay, then I run the Python code. Okay, I get Hello James. Hello Ken. So I will say As usual these values are the parameters James, James is passed to here.

And then from this test is passed to here. So when we print this Hello function it calls a printed Hello James and hello Okay. Then in our python programming our functions can also return something. So let's see if I want to maybe I will create another function to make a more clear. So maybe I can I see the fine see subtraction okay and I have a and b. here i can return see, a minus p okay then I can call question here. Okay, subtraction, maybe two, four.

I ran these colada should not be any tea. Okay? I have no caddy result from these are subtraction. So let's see, I want to get a result is our result equal okay then I will bring this result. Okay, three days off. Okay then I run this code I oh god negative two.

So for this subtraction, two is possible here and then four is possible here So, two minus four is negative two k then I return these are negative two And negative two is assigned to this result variable. And then I print this result here so I get negative

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.