python madlib py if neither of these workget help try the program second time and make different responses sample programexplained if you want to get right to the detailed explanations of writing your own pythonyou can skip to the next section starting idle (page if you would like an overview of working programeven if all the explanations do not make total sense yetread on here is the text of the madlib py programfollowed by line-by-line brief explanations do not worry if you not totally understand the explanationstry to get the gist now and the details later the numbers on the right are not part of the program file they are added for reference in the comments below#/usr/bin/env python ''string substitution for mad lib adapted from code by kirby urner '' storyformat '' once upon timedeep in an ancient jungle there lived {animalthis {animal liked to eat {food}but the jungle had very little {foodto offer one dayan explorer found the {animaland discovered it liked {foodthe explorer took the {animalback to {city}where it could eat as much {foodas it wanted however the {animalbecame homesickso the explorer brought it back to the jungle leaving large supply of {food the end '' def tellstory() userpicks dict( addpick('animal'userpicks addpick('food'userpicks addpick('city'userpicks story storyformat format(**userpicks print(story def addpick(cuedictionary) '''prompt for user response using the cue string and place the cue-response pair in the dictionary '' prompt 'enter an example for cue ' response input(prompt dictionary[cueresponse tellstory( input('press enter to end the program ' line by line explanation the python interpreter and idlepart