Develop program that randomly generate shakespearean insults

Assignment Help Python Programming
Reference no: EM131504885

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

Reference no: EM131504885

Questions Cloud

Create a rectangularprism class that has instance variables : Create a RectangularPrism class that has three instance variables for the three dimensions of a rectangular prism (length, width, and height).
Would that person be willing to pay thirteen pence : Person A buys one unit of a good when its price is 10 pence and two units when its price is 5 pence. Would that person be willing to pay 13 pence for two units.
The average arithmetic mean return for asset classes : Capital market history shows us that a correct ordering of the average arithmetic mean return for asset classes,
How does the disease affect the cardiovascular : How does the disease affect the cardiovascular and hematopoietic body systems in particular? How does it deviate from the definition of health discussed.
Develop program that randomly generate shakespearean insults : Assignment: Shakespearean Insults- Develop a program that will randomly generate twenty Shakespearean insults using the lists of words in the table below.
Explain the underlying assumptions made in each case : The indifference curves shown in the following diagrams do not conform with those drawn earlier in this part of the book, though they do not necessarily.
What are some methodologies of communication : What are some methodologies of communication you would use to develop a shared vision with your stakeholders?
Identify the approach that best fit your personal philosophy : Compare and contrast how you would expect nursing leaders and managers to approach your selected issue.
Discuss which of given statements is true or false and why : Discuss which of the following statements is true or false and explain why: a good is inferior if the quantity demanded of it falls as the price falls.

Reviews

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd