Hello, I am having trouble with a python 3.2.2 problem. Here is the problem, followed by the answer I have right now (I've put the example in green for clarification):
Write a program that declares a different series of lists (lists should not have the same number of words), and asks the user how many one-line poems she would like to see. In response the program will print that many different poems.
Here is an example of how your program should behave/work:
Welcome to the Random Poems of the Day!
How many poems would you like me to generate for you? 3
Here are your 3 poems:
Paris Hilton amazingly eats mice in Duckett House every Sunday afternoon
The cat never runs on the sofa early in the morning
Mrs Christ sometimes runs on the sofa at night
Here is what I have (please excuse the length)
from random import randrange
greetings=("Welcome to Random Peems of the Day!")
poems=("How many poems would you like me to generate for you?")
#create a list of people
people=["Lil Wayne", "Nicole Richie", "The garbage man", "The Vice-President"]
#creaate a list of verbs
verb=["twirls", "shakes", "dances", "yodels", "jumps", "spits"]
#create a list of adverbs
adverb=["all the time", "once a week", "ridiculously", "strongly", "frequently"]
#create a list of locations
location=["on the hood of the car","behind the stairs", "in front of the principal"]
#create a list of times
time=["at 1 o'clock in the morning", "at sunrise", "at dinner", "at 8pm", "during brunch"]
#figure out how many people, verbs, adverbs, locations, and times are in
#people, verb, adverb, location, and time, respectively.
#pick a number at random that is between 0 (included) and
#the number of people, verbs, adverbs, locations, and times(all excluded), respetively.
randomIndex =randrange(PeopleCount, VerbCount, AdverbCount, LocationCount, TimeCount)
print(poems, sep=" ")
#select the person, verb, adverb, location, and time at the Index and print words
# as a one-line poem.
print("Hey!", people[randomIndex], verb[randomIndex], sdverb[randomIndex], location[randomIndex], time[randomIndex], "!"]
Every time I run my program, it says I can't assign randrange to function call, and if the user were to type in 3 for three poems, three different poems won't show up. I'm not understanding why my program isn't working. May I please have help with this? I would really appreciate it. Thank you!