Question: Coding Problem 5.1.11 (Advanced) (External resource) (1.0 points possible) ? #0opy your Burrito class from the last exercise. Below, Console output will be displayed 2We




Coding Problem 5.1.11 (Advanced) (External resource) (1.0 points possible) ? #0opy your Burrito class from the last exercise. Below, Console output will be displayed 2We ve given you three additional classes named "Meat" 3 "Rice" and Beans."We've gone ahead and built getters 4 and setters in these classes to check if the incoming here 5 values are valid, so you'll be able to remove those 6 from your original code. 7 class Burrito: def init (self, meat, to go, rice, beans, extra neat-False, guacamole-False, cheese-Faise, Ico-Faise, corn-False): self.set meat (meat) self.set to goto go selt.set rice (rice self.set beans (beans) self.set extra meat (extra meat) self.set guacamole(guacamole) self.set cheese (cheese) self.set_pico(pico) self.set corn (corn) 10 12 13 15 17 18 def get meat (self): def qet to go(self): def get_rice(self) def getbeans (self): def get_extra meat (self): def get guacamole(self) def get cheese (self): def get_pico(self): def get corn (self) 20 return self.meat return self.to gO return self.rice return self.beans return sclf.extra meat return self.guacamole return self.cheese return self.pico return self.corn 21 23 25 28 29 30 31 35 36 3sdef sst peahfexie.ne peal steak-, st"chicken, pork if newmeat in lst: "tofu",False) 40 41 42 43 self.meat-newmeat else: self.meat-False 45 46 def set_to go(self,to go): Coding Problem 5.1.11 (Advanced) (External resource) (1.0 points possible) ? #0opy your Burrito class from the last exercise. Below, Console output will be displayed 2We ve given you three additional classes named "Meat" 3 "Rice" and Beans."We've gone ahead and built getters 4 and setters in these classes to check if the incoming here 5 values are valid, so you'll be able to remove those 6 from your original code. 7 class Burrito: def init (self, meat, to go, rice, beans, extra neat-False, guacamole-False, cheese-Faise, Ico-Faise, corn-False): self.set meat (meat) self.set to goto go selt.set rice (rice self.set beans (beans) self.set extra meat (extra meat) self.set guacamole(guacamole) self.set cheese (cheese) self.set_pico(pico) self.set corn (corn) 10 12 13 15 17 18 def get meat (self): def qet to go(self): def get_rice(self) def getbeans (self): def get_extra meat (self): def get guacamole(self) def get cheese (self): def get_pico(self): def get corn (self) 20 return self.meat return self.to gO return self.rice return self.beans return sclf.extra meat return self.guacamole return self.cheese return self.pico return self.corn 21 23 25 28 29 30 31 35 36 3sdef sst peahfexie.ne peal steak-, st"chicken, pork if newmeat in lst: "tofu",False) 40 41 42 43 self.meat-newmeat else: self.meat-False 45 46 def set_to go(self,to go)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
