Exercises

1. Muffins recipe - write a recipe

ingredients = ["wheat flour", "baking powder", "baking soda", "cinnamon", "salt", "vegetable oil", "vanilla sugar", "egg"] fruits = ["banana", "apple", "mango"]

What we need: 280g wheat flour, 2 tsp baking powder, 1/3 tsp baking soda, 1/2 tsp cinnamon, 1/4 salt, 1 egg, 150g sugar, 2 ripe bananas, 6tbsp vegetable oil, 1tsp vanilla sugar.

Rewrite this recipe using list above.


2. Calculate the price

meals = ["pizza","kebab","lasagna","fried rice","soup"] mealPrice = [10,15,8,6,5] drinks = ["soda","juice","water"] drinksPrice = [5,8,3] deliveryFee = 5

Order: 2 pizza, 3 kebabs, 1 soup, 2 fried rice, 4 juice, 1 water, 1 soda

Calculate price of the order


3. Find the number

number = 389 guess = input("Enter your guess:") if(number > int(guess)):
  print('Number is bigger than your guess')