+ 2
lets say you are at an automated restaurant where the card is generated based on your preferences! you have 3 options to choos option 0 i eat everything option 1 i am vegetarian who eats fish option 2 i am hardcore vegan now to print only the items a person is interessted in we could come up with this switchstatement pref = userinput() switch(pref){ case 0: print(meats) case 1: print(seafoods) case 2: print(salads) } hope you get the idea ^^
8th Oct 2017, 9:18 AM
Chrizzhigh
Chrizzhigh - avatar