Advertisement
exDotaPro

9_march_2019_3_gymnastics

Jan 10th, 2020
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.81 KB | None | 0 0
  1. country = input()
  2. instrument = input()
  3.  
  4. score = 0
  5.  
  6. if country == 'Bulgaria':
  7.     if instrument == 'ribbon':
  8.         score = 19.000
  9.     elif instrument == 'hoop':
  10.         score = 19.300
  11.     elif instrument == 'rope':
  12.         score = 18.900
  13. elif country == 'Russia':
  14.     if instrument == 'ribbon':
  15.         score = 18.500
  16.     elif instrument == 'hoop':
  17.         score = 19.100
  18.     elif instrument == 'rope':
  19.         score = 18.600
  20. elif country == 'Italy':
  21.     if instrument == 'ribbon':
  22.         score = 18.700
  23.     elif instrument == 'hoop':
  24.         score = 18.800
  25.     elif instrument == 'rope':
  26.         score = 18.850
  27.  
  28. score_difference = 20 - score
  29. percentage_to_max = (score_difference / 20) * 100
  30.  
  31. print(f'The team of {country} get {score:.3f} on {instrument}.')
  32. print(f'{percentage_to_max:.2f}%')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement