Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- month = int(input())
- electricity = 0
- water = month * 20
- internet = month * 15
- other = 0
- for i in range(0, month):
- current_bill = float(input())
- electricity += current_bill
- other += (current_bill + 35) * 1.2
- average = (electricity + water + internet + other) / month
- print(f'Electricity: {electricity:.2f} lv')
- print(f'Water: {water:.2f} lv')
- print(f'Internet: {internet:.2f} lv')
- print(f'Other: {other:.2f} lv')
- print(f'Average: {average:.2f} lv')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement