On the GUI when the code chooses 'C and D', the output on label looks like {C and D}. Is there a way to get rid of the {} and have it just print out C and D? Preferably without having to add more elements to the list.
from tkinter import *
root= Tk()
root.title('Letters')
def test():
import random
letter=['A','B','C and D']
letterslist=list()
count = 0
while count <5:
y= random.choice(letter)
letterslist.append(y)
count=count+1
return letterslist
x=test()
label1 =Label(root, text = x , fg="White", bg="Orange" )
label1.pack()
root.mainloop()