print("Pizza price program\n")
size=input("\nWhich size pizza you want? S,L,M\n")
add_pepperoni=input("\nDo you want to add pepperoni to your pizza? Y/N\n ")
extra_cheese=input("\nDo you want to add extra chees on your pizza? Y/N\n")
prize=0
if((size=="S") or (size=="s")):
prize+=15
elif((size=="M") or (size=="m")):
prize+=20
elif((size=="L") or (size=="l")):
prize+=30
else:
print("\nWrong choice")
if((add_pepperoni=="Y") or (add_pepperoni=="y")):
if((size=="S") or (size=="s")):
prize+=2
elif((size=="M") or (size=="m") or (size=="L") or (size=="l")):
prize+=3
if((extra_cheese=="Y") or (extra_cheese=="y")):
prize+=1
print(f"\nAmount to be paid for your pizza is {prize}.Rs")
in the first if else block if I provide other than S,L,M the code is proceeding to next if block but I want it to print "Wrong choice" if input is other than S,L,M.