title: The correct formula for computing the daily and weekly food expenses
body: <p>Ive been racking my head with this problem for the past couple of mins and was wondering what is wrong with my code and the right formula for it to work I am trying to get it to work like in the image given.
  Here is my code</p>
  <pre><code># Write your solution here
  times_week = float(input(&quot;How many times a week do you eat at the student cafeteria?&quot;))
  lunch_price = float(input(&quot;The price of a typical student lunch&quot;))
  groceries_spent = float(input(&quot;How much money do you spend on groceries in a week?&quot;))
  daily = float((times_week + lunch_price + groceries_spent) / 7)
  weekly = daily * 7
  
  print(&quot;Average food expenditure: &quot;)
  print(f&quot;{daily}&quot;)
  print(f&quot;{weekly}&quot;)
  
  </code></pre>
  <p>output should be
  <a href="https://i.stack.imgur.com/8z4ci.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8z4ci.png" alt="enter image description here" /></a></p>
  <p>but all i got is
  <a href="https://i.stack.imgur.com/5evUf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5evUf.png" alt="enter image description here" /></a></p>