Untitled

mail@pastecode.io avatar
unknown
python
2 years ago
465 B
7
Indexable
Never
days = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
sales = []
i = 0
while i < len(days):
    sales.append(int(input(days[i] + ": ")))
    i += 1
print("The total sale for the week: " + str(sum(sales)))
print("The average daily sale: " + str(sum(sales)/len(sales)))
print("The day with the highest amount is: " + str(days[sales.index(max(sales))]))
print("The day with the lowest amount is: " + str(days[sales.index(min(sales))]))