exDotaPro

20_april_2019_3_painting_eggs

Jan 5th, 2020
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.80 KB | None | 0 0
  1. egg_size = input()
  2. egg_colour = input()
  3. egg_batches = int(input())
  4.  
  5. egg_paint_price = 0
  6.  
  7. if egg_size == 'Large':
  8.     if egg_colour == 'Red':
  9.         egg_paint_price = 16
  10.     elif egg_colour == 'Green':
  11.         egg_paint_price = 12
  12.     elif egg_colour == 'Yellow':
  13.         egg_paint_price = 9
  14.  
  15. elif egg_size == 'Medium':
  16.     if egg_colour == 'Red':
  17.         egg_paint_price = 13
  18.     elif egg_colour == 'Green':
  19.         egg_paint_price = 9
  20.     elif egg_colour == 'Yellow':
  21.         egg_paint_price = 7
  22.  
  23. elif egg_size == 'Small':
  24.     if egg_colour == 'Red':
  25.         egg_paint_price = 9
  26.     elif egg_colour == 'Green':
  27.         egg_paint_price = 8
  28.     elif egg_colour == 'Yellow':
  29.         egg_paint_price = 5
  30.  
  31. total_price = egg_paint_price * egg_batches * 0.65
  32.  
  33. print(f'{total_price:.2f} leva.')
Advertisement
Add Comment
Please, Sign In to add comment