hi i am making a vending machine and require some assistance Okay so I need to create a function or something which disables products in a vending machine which there is not enough credit for example if the user has 50p the user can only buy crisps and only crisps should only be shown in what they can buy: Do i need a loop?
prices = [30,50,60]
products = ["juice £0.30","crisps £0.50","chocolate £0.60"]