A bit cleaner
# from random import choice # adj = ("Leviathian","Gargantuan","Greedy","Fallen","Horrible","Twisted","Depraved","Hungry","Evil","Vengeful","Empty","Vile","Terrible", "Gluttonous") # def im_sorry(): # first = choice(adj) # second = choice(adj) # last = choice(adj) # while last==first or last==second or first==second: # last=choice(adj) # first=choice(adj) # return first+" "+second+" Garfield, The "+last + " One" from numpy.random import choice adjs = ("Leviathian","Gargantuan","Greedy","Fallen","Horrible","Twisted","Depraved","Hungry","Evil","Vengeful","Empty","Vile","Terrible", "Gluttonous") def im_sorry(): choices = choice(adjs, 3, replace=False) return f"{choices[0]} {choices[1]} Garfield, The {choices[2]} One"
from random import choice- # from random import choice
adj = ("Leviathian","Gargantuan","Greedy","Fallen","Horrible","Twisted","Depraved","Hungry","Evil","Vengeful","Empty","Vile","Terrible", "Gluttonous")- # adj = ("Leviathian","Gargantuan","Greedy","Fallen","Horrible","Twisted","Depraved","Hungry","Evil","Vengeful","Empty","Vile","Terrible", "Gluttonous")
- # def im_sorry():
- # first = choice(adj)
- # second = choice(adj)
- # last = choice(adj)
- # while last==first or last==second or first==second:
- # last=choice(adj)
- # first=choice(adj)
- # return first+" "+second+" Garfield, The "+last + " One"
- from numpy.random import choice
- adjs = ("Leviathian","Gargantuan","Greedy","Fallen","Horrible","Twisted","Depraved","Hungry","Evil","Vengeful","Empty","Vile","Terrible", "Gluttonous")
- def im_sorry():
first = choice(adj)second = choice(adj)last = choice(adj)while last==first or last==second or first==second:last=choice(adj)first=choice(adj)return first+" "+second+" Garfield, The "+last + " One"- choices = choice(adjs, 3, replace=False)
- return f"{choices[0]} {choices[1]} Garfield, The {choices[2]} One"