Review Exercise

Q1 : Create a loop that prints "Merry Christmas" 10 times?

Q2: Create a loop that prints "Happy Holidays" as long as the loop index is < 20 . Loop index should increase with every iteration.

Q3: Write a story on your thanksgiving break - shouls be 10 lines. Each line should be on a new line.

Q4: Solve a math problem: A car has 12 gallons of petrol.

* When the petrol goes down to 9 gallon - the dashnpard prints a message " Enough Gas "
* When the petrol goes down to 6 gallon - the dashnpard prints a message " Will need to gas fill soon "
* When the petrol goes down to 3 gallon - the dashnpard prints a message " Warning ! Fill gas when you see the next gas station"
* When the petrol goes down to 1 gallon - the dashnpard prints a message " Go to a gas station now!!"
In [ ]: