WEBVTT

00:00.220 --> 00:02.580
Listing multiple LFA expressions

00:05.620 --> 00:09.210
listing multiple life expressions.

00:09.210 --> 00:17.460
If we need this multiple conditions in your code we can use if elif expressions as many as we need to

00:17.460 --> 00:22.180
do in order comparisons there is no actual limits to use.

00:22.200 --> 00:27.710
If they fail state it's let's see how.

00:28.530 --> 00:35.240
So first go to brackets and we will make a full program to use if elif statements.

00:35.770 --> 00:36.280
OK.

00:36.420 --> 00:43.220
This program checks for discounts and the interest prize is $120.

00:43.290 --> 00:45.450
Create a variable called price.

00:45.460 --> 00:54.240
A signing with $120 and another variable called time just to know how many times did you go to the zoo

00:54.240 --> 00:56.630
before signing with it.

00:56.680 --> 00:58.510
And it means energy.

00:58.650 --> 01:02.940
And it takes only the poll numbers as we said before then.

01:03.050 --> 01:11.470
Parentheses include input means let the user insert any in.

01:15.000 --> 01:28.170
So now type f times equal equal three column and price equals 120 minus 30 then print in your total

01:28.170 --> 01:32.310
including this count will be a variable price.

01:32.310 --> 01:39.330
It says here if times equals three which means if the user want to use three times the discount will

01:39.330 --> 01:40.800
be 30 dollars.

01:41.070 --> 01:44.130
That's why we use 100 minus 30.

01:44.490 --> 01:49.220
Now we use 11 times equal equal for all.

01:49.890 --> 01:54.850
Rice will be 120 minus 50.

01:57.760 --> 02:06.070
Same thing we used 11 times equally goal five all in price equals 129 or 60

02:11.800 --> 02:20.260
and other Ilive times greater than or equal six coal in price equals 120 minus 70

02:23.370 --> 02:25.270
else.

02:25.390 --> 02:34.390
Call in print or string of your total price is karma price camera and other string and you are not eligible

02:34.540 --> 02:36.870
for discount at this time.

02:37.260 --> 02:37.810
OK.

02:37.960 --> 02:42.460
Now try your program on terminal.

02:44.120 --> 02:47.110
How many times did you go to this before.

02:47.140 --> 02:52.330
For example one time I'm not eligible because it's less than three times

03:44.770 --> 03:45.790
as you see here.

03:45.860 --> 03:52.160
If your visits six times or more discounts will be only $70.

03:52.190 --> 03:55.570
Enjoy your program and try to play with the code.

03:56.090 --> 04:02.580
Thank you for watching.
