In python please:
Design a program that asks the user to enter a store’s sales for each day of the week. The amounts should be stored in a list. Use a loop to calculate the total sales for the week and display the result.

Respuesta :

Answer:

declare a list and loop through to get the total sales

Explanation:

input_string = input("Enter sales: ")

userList = input_string.split()

print("user list is ", userList)

print("Calculating total of the sales")

sum = 0

for num in userList:

   sum += int(num)

print("Total sales= ", sum)

ACCESS MORE
ACCESS MORE
ACCESS MORE
ACCESS MORE