import random text = [ "<>'" ] 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))