Answer to Question #346006 in Python for Chinna

Question #346006

Discount sale



Input 1


4


1 1 2 2


Output 1


4



Input 2


2


10 200


Output 2


210

1
Expert's answer
2022-05-30T15:15:07-0400
print("Enter N:")
n = int(input())
sum = 0
print("Enter cost of items: ")
cost = [int(i) for i in input().split()]
for i in range(n):
    sum+= cost[i]
print(sum) 

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS