Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. def column_sum(data, column):
  2. result = 0
  3. for row in data:
  4. result += row[column]
  5. return result
  6.  
  7. total_budget = column_sum(oscar_data, 5)
  8. print('Суммарный бюджет: {:.2f} млн $'.format(total_budget))
  9.  
  10. total_gross = column_sum(oscar_data, 6)
  11. print('Суммарные сборы: {:.2f} млн $'.format(total_gross))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement