im trying to export two lists to an excel file using pandas, but i cannot append my data using this method.
product_list1 = ["apple", "pear", "oragne", "melon"]
product_list2 = ["bread", "sugar", "flour", "salt"]
list_codes = []
list_numbers = []
def quantity_check(list_type, list_number):
choise = input("Quantity:")
if choise in range(1, 99):
list_numbers.append(choise)
list_codes.append(list_type[list_number])
quantity_check(product_list1,0)
quantity_check(product_list1,1)
quantity_check(product_list1,2)
quantity_check(product_list1,3)
print (list_numbers)
print (list_codes)
This outputs the two empty lists for some reason.