I am working on the thread shed exercise and would really like some help / signposting in the right direction.
I have been trying to do the exercise and following the video when I get stuck. I’ve got to the point of calculating total sales. my total is 5994.9599999999955, however the exercise video solution gives a total of 1498.74…
I have looked again at my code but I’m stumped where I’m going wrong. would really appreciate a steer on this if anyone can help. thanks.
link to exercise: here
my Code so far:
daily_sales_replaced = daily_sales.replace(";,;","+")
daily_transactions = daily_sales_replaced.split(",")
for each_transaction in daily_transactions:
for transaction in daily_transactions_split:
for data_point in transaction:
transaction_cleaned.append(data_point.replace("\n", “”).strip(" "))
for transaction in transactions_cleaned:
total_sales = 0
for sale in sales:
total_sales += float(sale.strip("$"))