Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def column_sum(data, column):
- result = 0
- for row in data:
- result += row[column]
- return result
- total_budget = column_sum(oscar_data, 5)
- print('Суммарный бюджет: {:.2f} млн $'.format(total_budget))
- total_gross = column_sum(oscar_data, 6)
- print('Суммарные сборы: {:.2f} млн $'.format(total_gross))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement