So I want this code to pick a random item from each list in the order of list1 to list2 to list3. Then I want it to put them into a randomly generated sentence:
from random import randint
list1 = ["Artless", "Bawdy", "Bootless"]
list2 = ["Base-court", "Bat-fowling", "Beetle-headed"]
list3 = ["Apple-john", "Baggage", "Bladder"]
import random
def nurd3():
print (random.choice(list1))
def nurd2():
print (random.choice(list2))
def nurd1():
print (random.choice(list3))
print ("Thou" + nurd1() + nurd2() + nurd3())
Aucun commentaire:
Enregistrer un commentaire