Putting All Together 2

10 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.74
List Price:  €59.84
You save:  €17.10
£37.06
List Price:  £51.88
You save:  £14.82
CA$68.35
List Price:  CA$95.69
You save:  CA$27.34
A$76.10
List Price:  A$106.55
You save:  A$30.44
S$64.01
List Price:  S$89.62
You save:  S$25.61
HK$392.41
List Price:  HK$549.41
You save:  HK$156.99
CHF 39.80
List Price:  CHF 55.73
You save:  CHF 15.92
NOK kr505.14
List Price:  NOK kr707.25
You save:  NOK kr202.10
DKK kr318.97
List Price:  DKK kr446.59
You save:  DKK kr127.61
NZ$83.40
List Price:  NZ$116.77
You save:  NZ$33.37
د.إ183.61
List Price:  د.إ257.07
You save:  د.إ73.46
৳6,077.26
List Price:  ৳8,508.66
You save:  ৳2,431.39
₹4,297.75
List Price:  ₹6,017.20
You save:  ₹1,719.44
RM212.58
List Price:  RM297.63
You save:  RM85.05
₦76,541.18
List Price:  ₦107,163.78
You save:  ₦30,622.60
₨14,215.90
List Price:  ₨19,903.40
You save:  ₨5,687.50
฿1,619.10
List Price:  ฿2,266.87
You save:  ฿647.77
₺2,009.44
List Price:  ₺2,813.38
You save:  ₺803.94
B$277.94
List Price:  B$389.15
You save:  B$111.20
R892.73
List Price:  R1,249.89
You save:  R357.16
Лв83.67
List Price:  Лв117.15
You save:  Лв33.47
₩69,010.71
List Price:  ₩96,620.52
You save:  ₩27,609.80
₪168.14
List Price:  ₪235.41
You save:  ₪67.27
₱2,830.83
List Price:  ₱3,963.39
You save:  ₱1,132.55
¥7,358.78
List Price:  ¥10,302.88
You save:  ¥2,944.10
MX$933.80
List Price:  MX$1,307.39
You save:  MX$373.59
QR181.99
List Price:  QR254.80
You save:  QR72.81
P667.26
List Price:  P934.22
You save:  P266.96
KSh6,458.70
List Price:  KSh9,042.70
You save:  KSh2,584
E£2,472
List Price:  E£3,461
You save:  E£988.99
ብር6,843.63
List Price:  ብር9,581.63
You save:  ብር2,738
Kz45,588.63
List Price:  Kz63,827.73
You save:  Kz18,239.10
CLP$47,905.41
List Price:  CLP$67,071.41
You save:  CLP$19,166
CN¥358.32
List Price:  CN¥501.68
You save:  CN¥143.35
RD$3,014.39
List Price:  RD$4,220.39
You save:  RD$1,206
DA6,501.71
List Price:  DA9,102.91
You save:  DA2,601.20
FJ$112.21
List Price:  FJ$157.10
You save:  FJ$44.89
Q383.92
List Price:  Q537.52
You save:  Q153.59
GY$10,456.33
List Price:  GY$14,639.70
You save:  GY$4,183.37
ISK kr6,087.78
List Price:  ISK kr8,523.38
You save:  ISK kr2,435.60
DH450.03
List Price:  DH630.08
You save:  DH180.05
L846.86
List Price:  L1,185.67
You save:  L338.81
ден2,631.12
List Price:  ден3,683.77
You save:  ден1,052.65
MOP$404.11
List Price:  MOP$565.78
You save:  MOP$161.67
N$886.32
List Price:  N$1,240.92
You save:  N$354.60
C$1,837.13
List Price:  C$2,572.13
You save:  C$735
रु6,855.24
List Price:  रु9,597.89
You save:  रु2,742.64
S/177.28
List Price:  S/248.21
You save:  S/70.93
K206.20
List Price:  K288.70
You save:  K82.50
SAR187.47
List Price:  SAR262.47
You save:  SAR75
ZK1,156.96
List Price:  ZK1,619.84
You save:  ZK462.87
L217.19
List Price:  L304.09
You save:  L86.89
Kč1,054.35
List Price:  Kč1,476.18
You save:  Kč421.82
Ft17,105.66
List Price:  Ft23,949.30
You save:  Ft6,843.63
SEK kr479.39
List Price:  SEK kr671.19
You save:  SEK kr191.79
ARS$63,026.24
List Price:  ARS$88,241.78
You save:  ARS$25,215.54
Bs346.09
List Price:  Bs484.56
You save:  Bs138.46
COP$200,644.83
List Price:  COP$280,918.82
You save:  COP$80,273.98
₡25,205.82
List Price:  ₡35,290.17
You save:  ₡10,084.34
L1,317.23
List Price:  L1,844.23
You save:  L527
₲387,342.82
List Price:  ₲542,310.94
You save:  ₲154,968.12
$U2,032.01
List Price:  $U2,844.98
You save:  $U812.96
zł182.05
List Price:  zł254.88
You save:  zł72.83
Already have an account? Log In

Transcript

Okay in Python programming to get input from the user, I can do something like this input. I say input okay I can remove these. Can I can I see a option on the menu I will see I see. User selector for input. Okay. I can do something like I say he is a selector equal equal to, let's say, one kind of do something And how's he?

He was a Quaker and do something else. Okay, how's he is uh a quick look at how to do something else. And he uses allow for anybody else. Okay. So user selected equal equal. Why YK?

Let me see. Let me see that green and run the code. Hey Josie I know something I guess he is also that he won. Okay? Do something that is can I say run the code okay use a employ for one. Okay they print one can mec use this as a sample one thank you I bought two full tree Can I pull for can I run a code?

So I select I see one okay goes to one and four. I will have to change something so input. Why even tell me? Okay, let's assume I return the string story. So I have to say, changes to the sea in Asia, or maybe I change this to three. Okay, then I'll run the program again.

He one okay he printed one and then come to here okay. So, this is correct correct. I will say Cora Bolinas question okay. So, how do I put in the function okay. I say d phi and a B i can do something like a result equals a fast D and I cannot be please is user K can substructure multiplication division here will be subtraction Be multiplication and you know be on a team TV show okay hadisha subtraction multiplication okay based on just know if you guys hate debugging this function have to be in front of se here this function Like the pre orders function, we have to put them in front of all the costs before these functions are being called okay. So eventually it was a solid quarter one guy is addition that I can do something is also a typo now who number was number four first number.

Oh, maybe please enter first number. Okay and I will also put in the second one base and second number Okay, they know Cody's idea addition. Okay on number one and number two, this input as we just try, this input will return us a string data type. So I have to convert these are number one to let's say, integer float. If I want Jesse McCoy I have to convert this to float okay Okay I want to print something okay I want to print the result. So I have to create a result variable that is a result from this hydration method to be to be stored in this resolver.

So I pull result here, okay and do something like this. I will copy, paste. Okay. Ah option two is subtraction, subtraction. Okay option three is division option four is multiplication. Okay, then I can run these are cool.

Okay guys, so let us say hi addition. first number is one second number is two, so I get three. Okay, I run this code again. Yeah, so subtraction so first number is one second number is, again negative one Randy's cool gain. Okay, Taiwanese division. First number one second number two is 0.5 Rhonda cool game.

Nice. Multiplication was number is one second num plus two I get 2.0 okay

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.