I have attached a screen shot of a problem I’m having?
I can’t get the “num_two_dollar_slices = pizzas.count(str(2))” to equal anything but 0.
I’ve tried pizzas.count(2), pizzas.count(‘2’) I’ve even tried moving the count string to different spots in the flow of things.
pizzas = list(zip(prices, toppings)) pizzas.sort() print(pizzas) num_two_dollar_slices = pizzas.count(str(2)) print(num_two_dollar_slices)
No matter what I put in the parenthesis, I get 0 when I print.
Does anyone have any insight to this?