def trackItems(): cursor.execute("SELECT ItemsBought, COUNT(*) FROM Purchase GROUP BY ItemsBought") stock = [] Graphs = cursor.fetchall() p