#Write a function, perishable, that has one parameter - number of items in #the store. The function reads the barcode (integer number) for each item #and its price (floating number). All perishable items in the store have #EVEN barcodes. The function finds and returns the number of PERISHABLE #items that cost under 2 dollars. #Write main that reads the number of items in the store, calls function #perishable to find the number of PERISHABLE items that cost under 2 #dollars. If there are NO such items, the program prints appropriate #message. def perishable(num_items): count=0 for i in range(num_items): price=float(input("enter price ")) barcode=int(input("enter barcode ")) if(barcode%2==0 and price<2): count+=1 return count def main(): num_items=int(input("enter number of items ")) result=perishable(num_items) if(result==0): print("no perishable under 2 dollars") else: print(result, "perishable under 2 dollars") main()