Listing multiple LFA expressions
listing multiple life expressions.
If we need this multiple conditions in your code we can use if elif expressions as many as we need to
do in order comparisons there is no actual limits to use.
If they fail state it's let's see how.
So first go to brackets and we will make a full program to use if elif statements.
OK.
This program checks for discounts and the interest prize is $120.
Create a variable called price.
A signing with $120 and another variable called time just to know how many times did you go to the zoo
before signing with it.
And it means energy.
And it takes only the poll numbers as we said before then.
Parentheses include input means let the user insert any in.
So now type f times equal equal three column and price equals 120 minus 30 then print in your total
including this count will be a variable price.
It says here if times equals three which means if the user want to use three times the discount will
be 30 dollars.
That's why we use 100 minus 30.
Now we use 11 times equal equal for all.
Rice will be 120 minus 50.
Same thing we used 11 times equally goal five all in price equals 129 or 60
and other Ilive times greater than or equal six coal in price equals 120 minus 70
else.
Call in print or string of your total price is karma price camera and other string and you are not eligible
for discount at this time.
OK.
Now try your program on terminal.
How many times did you go to this before.
For example one time I'm not eligible because it's less than three times
as you see here.
If your visits six times or more discounts will be only $70.
Enjoy your program and try to play with the code.
Thank you for watching.