1 2 3 4 5 6 7 8 9 10 11
import random test = "123\nabc\nxD" l = test.split("\n") x = random.choice(l) print(x) print(l)