This commit is contained in:
bakatrouble 2019-11-27 22:34:04 +03:00
parent ab976beb5d
commit e12f68002b

View File

@ -57,7 +57,7 @@ class MTG(object):
return self.choose_start_words()
return first_word, second_word
else:
first_word = random.choice(self.MC[random.choice(self.MC.keys())])
first_word = random.choice(self.MC[random.choice(list(self.MC.keys()))])
return self.choose_start_words(first_word, second_word)
def generate_text(self, first_word=None, second_word=None, size=30):