rapid introduction to procedural programming numbers[ count sum lowest highest mean it will take about four lines to initialize the necessary variables (an empty list is simply [])and less than lines for the while loopincluding basic error handling printing out at the end can be done in just few linesso the whole programincluding blank lines for the sake of clarityshould be about lines in some situations we need to generate test text--for exampleto populate web site design before the real content is availableor to provide test content when developing report writer to this endwrite program that generates awful poems (the kind that would make vogon blushrandom randint(and random choice( create some lists of wordsfor examplearticles ("the"" "etc )subjects ("cat""dog""man""woman")verbs ("sang""ran""jumped")and adverbs ("loudly""quietly""well""badly"then loop five timesand on each iteration use the random choice(function to pick an articlesubjectverband adverb use random randint(to choose between two sentence structuresarticlesubjectverband adverbor just articlesubjectand verband print the sentence here is an example runawfulpoetry _ans py another boy laughed badly the woman jumped boy hoped horse jumped another man laughed rudely you will need to import the random module the lists can be done in about - lines depending on how many words you put in themand the loop itself requires less than ten linesso with some blank lines the whole program can be done in about lines of code solution is provided as awfulpoetry _ans py to make the awful poetry program more versatileadd some code to it so that if the user enters number on the command line (between and inclusive)the program will output that many lines if no command-line argument is givendefault to printing five lines as before you'll need to change the main loop ( to while loopkeep in mind that python' comparison operators can be chainedso there' no need to use logical and when checking that the argument is in range the additional functionality can be done by adding about ten lines of code solution is provided as awfulpoetry _ans py it would be nice to be able to calculate the median (middle valueas well as the mean for the averages program in exercise but to do this we must sort the list in python list can easily be sorted using the list sort(