aboutsummaryrefslogtreecommitdiff
path: root/Python/Beginner training/011 FitnessEquipment.py
blob: a8046da033b90cd631010ac464ee6d55fcf12c33 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import sys
import math
import random
import os

total_sum = 0.0
for x in range(int(input())):
    item_name = input()

    if item_name == "treadmill": total_sum += 5899
    elif item_name == "cross trainer": total_sum += 1699
    elif item_name == "exercise bike": total_sum += 1789
    elif item_name == "dumbells": total_sum += 579
    else: print("ERROR, Invalid product name")

print(round(total_sum, 2))