Assignment shakespearean insults- develop a program that


Assignment: Shakespearean Insults

Develop a program that will randomly generate twenty Shakespearean insults using the lists of words in the table below. Each insult will have four words beginning with "Thou" followed by one randomly chosen word from each of the three lists. An example of twenty Shakespearean insults is below. Put as many words as you want from each list below into separate lists in your Python code; you don't have to use every word in each list.

Hints:

1. To generate a random integer you must import the random module and then call the randint function with lower and upper bounds as the arguments for the function.

2. When generating a random number for selecting a word out of your list, don't physically count the number of words in the list; use the length function to calculate the number of words in the list. This way if you add or subtract any words from a list, the adjustment for the random number will be updated automatically by the code.

3. Keep in mind that the upper-bound parameter for the randint function is will return numbers including the upper bound and we don't want that number chosen because list indices start at 0. For example, if your list has 10 words in it, and you use arguments of 0 and 10 for the randint function; if the number 10 was chosen, you would get the following error - IndexError: list index out of range. So you need to use 0 and 9 as randint arguments for 10 random integers.

Thou craven common-kissing bum-bailey Thou churlish common-kissing bladder Thou errant base-court bum-bailey

Thou errant common-kissing apple-john Thou clouted boil-brained baggage Thou bootless common-kissing boar-pig Thou bootless beetle-headed apple-john Thou errant clay-brained baggage

Thou dissembling beetle-headed bladder Thou errant clay-brained apple-john Thou churlish boil-brained apple-john

Thou dissembling beetle-headed bum-bailey Thou errant boil-brained boar-pig

Thou dissembling common-kissing bum-bailey Thou clouted bat-frowling baggage

Thou clouted boil-brained bum-bailey Thou churlish base-court apple-john Thou clouted common-kissing bum-bailey

Thou clouted clay-brained bladder Thou craven bat-frowling baggage

List 1

List 2

List 3

Artless

base-court

apple-john

Bawdy

bat-fowling

baggage

Bootless

beetle-headed

bladder

Churlish

boil-brained

boar-pig

Clouted

clay-brained

bum-bailey

Craven

common-kissing

canker-blossom

Dissembling

dizzy-eyed

coxcomb

Errant

dread-bolted

death-token

Fawning

earth-vexing

dewberry

Fobbing

elf-skinned

flap-dragon

Frothy

fen-sucked

flirt-gill

Impertinent

fool-born

gudgeon

infectious

full-gorged

haggard

jarring

guts-griping

harpy

Loggerheaded

half-faced

hedge-pig

Lumpish

hasty-witted

horn-beast

Paunchy

ill-breeding

lout

Rank

onion-eyed

minnow

Saucy

reeling-ripe

nut-hook

Spleeny

rough-hewn

pigeon-egg

Spongy

rude-growing

pignut

Villainous

tardy-gaited

strumpet

Wayward

toad-spotted

vassal

Yeasty

weather-bitten

wagtail

Request for Solution File

Ask an Expert for Answer!!
Python Programming: Assignment shakespearean insults- develop a program that
Reference No:- TGS02300443

Expected delivery within 24 Hours