import random random = ["Q1", "Q2", "Q3", "Q4", "Q5"] for item in range(1,5): chosen=(random.choice(random)) main_var.remove(chosen) print(chosen)