Mar-24-2019, 01:53 PM
In this code, what's the difference between my first three conditionals and the 4th one (elif size is "a":)? They all look like the same type of if statement to me!
S = 0 M = 0 L = 0 while True: size = input("Select a pizza size (small, medium, large): \n") if size is "small": S += 1 elif size is "medium": M += 1 elif size is "large": L += 1 elif size is "a": print("wth?") break else: print("That's not a pizza size") break