What I've done:
with open('TheData.txt', 'r') as data_file:
money = data_file.read()
wednesday_tickets = ['W1', 'W2', 'W3']
thursday_tickets = ['T1', 'T2', 'T3']
friday_tickets = ['F1', 'F2', 'F3']
countW = money.count (wednesday_tickets)
countT = money.count (thursday_tickets)
countF = money.count (friday_tickets)
wednesday = countW * 5
thursday = countT * 5
friday = countF * 10
money_raised = wednesday + thursday + friday
print("The total money raised for charity is £ " + money_raised)
Question: When I ran my program, I recieved 'TypeError: Can't convert 'list' object to str implicitly' back. I've tried everything in my knowledge but I don't know what I should do to over come this. My aim with this piece of code is to find out how much money was raised by counting how many T1, T2, T3, W1, W2.. there are in the file and multiply them with their price.