I did not read the Homework rules until just now, sorry.
################current code###############
this is my current code and it works great. but it only produces one word like
"george"
I want it to produce in sentence form. for example
outcome: "George Sarah Missy"
or
outcome: "Bob Sarah Larry"
Etc
They are random from each list and each list is in order.
Ive tried ->
just to try two together, but it wont work..
how would I pick 1 name from all three lists in sequence on the same line?
################current code###############
old_people = ['George', 'Bob', 'Owen'] young_people = ['Sarah', 'Gwen', 'Brittney'] mid_age = ['Larry', 'Missy', 'Greg'] import random print(random.choice(old_people))################
this is my current code and it works great. but it only produces one word like
"george"
I want it to produce in sentence form. for example
outcome: "George Sarah Missy"
or
outcome: "Bob Sarah Larry"
Etc
They are random from each list and each list is in order.
Ive tried ->
print(random.choice(old_people, mid_age))
just to try two together, but it wont work..
how would I pick 1 name from all three lists in sequence on the same line?