Dec-10-2019, 02:53 AM
I don't think you went to the link and read. Random.choice is not for multiple choice.
import random with open("SongArtists.txt","r") as file: lines = file.readlines() chosen_line = random.choice(lines) #Now split.