#Using loop to calculate the total sales for the week.
file = open('sale.txt','r')
theweek = 
numbers = 
index = 0
total = 0
# striping new characters and added acculumator
for line in file:
list = line.split(',')
theweek[index] = float(theweek[index])
total += theweek[index]
print("The day with the lowest sales: ",theweek[numbers.index(min[numbers])
return calculatingsales (results)
#splitting items into two dimensional list
Sunday = ',10839.33'
Monday = ',8921.47'
Tuesday = ',15932.34'
Wednesday = ',7319.21'
Thursday = '11093.82'
Friday = '2304.90'
Saturday = ',9023.83'
Sunday_list = Sunday.split(',')
Monday_list = Monday.split(',')
Tuesday_list = Tuesday.split(',')
Wednesday_list = Wednesday.split(',')
Thursday_list = Thursday.split(',')
Friday_list = Friday.split(',')
Saturday_list = Saturday.split(',')
two_dim_list = [Sunday_list,
index1 = 0 # two d list
while index1 < len(two_dim_list):
print('Total sales: ', two_dim_list[index1])
print('Week days: ', two_dim_list[index1])
index += 1
# slicing list
What I have tried: