Advertisement
Spocoman

Grandpa Stavri

Jan 6th, 2022
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.47 KB | None | 0 0
  1. days = int(input())
  2. liters = 0
  3. gradus = 0
  4.  
  5. for i in range(days):
  6.     batch_liters = float(input())
  7.     batch_degrees = float(input())
  8.     liters += batch_liters
  9.     gradus += batch_liters * batch_degrees
  10.  
  11. print(f'Liter: {liters:.2f}')
  12. print(f'Degrees: {gradus / liters:.2f}')
  13. if gradus / liters < 38:
  14.     print('Not good, you should baking!')
  15. elif gradus / liters <= 42:
  16.     print('Super!')
  17. elif gradus / liters > 42:
  18.     print('Dilution with distilled water!')
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement