["everyday", "sometimes", "occasionally", "significantly", "excited"] verbs = ["excuse", "absorb", "kiss", "drop", "isolate", "fling"] nouns = ["head", "heart", "skin", "air", "chair", "carpet"] adverbs = ["dutifully", "crazily", "realistically", "heartfully", "foolishly"] contractions = ["don't", "can't", "won't", "hasn't", "must've"] identifier = ["I", "She", "He", "They", "We"] def random_verse(self, bars=8): verses = [] for i in range(bars): random_num = random.randrange(0, len(self.adjective)) rand_verse = self.identifier[random_num] + ' ' + self.contractions[random_num] + ' ' + self.adverbs[random_num] +' ' + self.nouns[random_num] + ' ' + self.verbs[random_num] + ' ' + self.adjective[random_num] verses.append(rand_verse) return verses