import random text = [ "To be", "or not", "to be" ] random_text_one = random.choice(text) random_text_two = random.choice(text) random_text_three = random.choice(text) print("{}\n" "{}\n" "{}\n".format(random_text_one, random_text_two, random_text_three))