Code:
################
### Task Two ###
################

def defTakeOrder():
    file = r"C:\Users\Sean\Documents\Year 12\CS\Summer\Book1.csv"
    listOrder = input("Type your order in the format:\n'GTIN-8,Quantity...' repeated as necessary.\n If the quanitity is 1, still enter a 1 rather than leaving the space blank.\n")
    listOrder = listOrder.split(",")
    global listAvailable
    listAvailable = []
    with open(file, "r") as text:
        for row in text:
            listAvailable.append(row.split(","))
    count = 1
    while count < len(listAvailable):
        listAvailable[count].append(listAvailable[count][2].strip("\n"))
        listAvailable[count].pop(2)
        count = count + 1
    listAvailable.pop(0)
    print(listAvailable)
    count = 0
    count3 = 0
    listReference = []
    priceTotal = 0
    while count < len(listOrder)/2 + 1:
        print(listOrder[count])
        count2 = 0
        while count2 < len(listAvailable):
            try:
                intReference = listAvailable[count2].index(listOrder[count])
                listReference.append(intReference)
                count2 = count2 + 1
            except ValueError:
                count2 = count2 + 1
        count = count + 2
        print(listOrder[count], end = "   ")
        print("\n" + str(listReference))
        print(str(count))
        print(listAvailable[listReference[count3]][1], end="   ")
        print(listAvailable[listReference[count3]][2], end="   ")
        print(listOrder[count + 1], end = "   ")
        print(str(float(listAvailable[count][2])*float(listOrder[count + 1])))
        priceTotal = priceTotal + float(listAvailable[count][2])*float(listOrder[count + 1])
        count = count + 2
        count3 = count3 + 1
        
    
    
defTakeOrder()
I'm getting the response

Code:
Type your order in the format:
'GTIN-8,Quantity...' repeated as necessary.
 If the quanitity is 1, still enter a 1 rather than leaving the space blank.
16448162,3,12345670,5
[['13245627', 'Burger', '1'], ['16448162', 'Hot Dog', '1.2'], ['21564543', 'Chips', '0.8'], ['12345670', 'Chicken Burger', '1.1'], ['34512340', 'Veggie Burger', '1.3'], ['98981236', 'Veggie Hot Dog', '1.4'], ['56756777', 'Fish Burger', '1.5'], ['90673412', 'Coca Cola', '0.9']]
16448162
12345670   
[0]
2
Burger   1   5   4.0
I want to create a reciept and I'll eventually add the total onto that too
What am I doing wrong?