If I wanted to have each of the inputs that I input for noun and… If I wanted to have each of the inputs that I input for noun and verbs and plural nouns and nouns to each be their own separate color, and for the program to return them in a separate color, how would I go about doing that?My Code:import randomimport jsonimport osclass Colors: HEADER = ’33[95m’ YESRED = ’33[31m’ YESCYAN = ’33[96m’ YESGREEN = ’33[92m’ AWARNING = ’33[93m’ AFAIL = ’33[91m’ ENDPROGRAM = ’33[0m’class CreateaMadLib: Path = ‘C://MadLibGen’ def __init__(self, Word_Desc, Temp): self.Temp = Temp self.Word_Desc = Word_Desc self.UserInput = [] self.Story = “” @classmethod def Get__From__Json(cls, Name, Path=”): fPath = Path + Name with open(fPath, “r”) as F: Data = json.load(F) Create_a_MadLib = cls(**Data) return Create_a_MadLib def Get__The__Words__From__TheUser(self): print(Colors.YESGREEN + “Please enter the words that you want: ” + Colors.ENDPROGRAM) for desc in self.Word_Desc: if desc == ‘plural noun’: desc_color1 = Colors.YESRED elif desc == ‘Noun’: desc_color2 = Colors.AWARNING elif desc == ‘-ing Verb’: desc_color3 = Colors.YESCYAN elif desc == ‘Verb’: desc_color4 = Colors.AFAIL UI = input(Colors.YESRED + desc + ” “) self.UserInput.append(Colors.YESRED + UI + Colors.ENDPROGRAM) return self.UserInput def Build__A__Story(self): self.Story = self.Temp.format(*self.UserInput) return self.Story def Display_A_MadLib_Story(self): print(Colors.HEADER + self.Story + Colors.ENDPROGRAM) def Choose_A_MadLib_Temp(self): print(“Please choose the Mad Lib that you want from the list:”) MadLibGen = os.listdir(CreateaMadLib.Path) Temp = input(str(MadLibGen) + ” “) return Tempif __name__ == ‘__main__’: # Temp_Name = Choose_A_MadLib_Temp() Temp_Name = “ArcadeMadLib.json” Create_a_MadLib = CreateaMadLib.Get__From__Json(Temp_Name) Word_Desc = Create_a_MadLib.Word_Desc Temp = Create_a_MadLib.Temp My_MadLib = CreateaMadLib(Word_Desc, Temp) print(Colors.YESGREEN + ‘Story Guide ( Replace {} with what is asked ):’ + Colors.ENDPROGRAM) print(Colors.HEADER + Temp + Colors.ENDPROGRAM) Word = Create_a_MadLib.Get__The__Words__From__TheUser() Story = Create_a_MadLib.Build__A__Story() Create_a_MadLib.Display_A_MadLib_Story()Computer ScienceEngineering & TechnologyPython Programming PROG 70030

Order your essay today and save 20% with the discount code ESSAYHELP