for y in range(0,len(lijst)):
if lijst[y] not in dict_ls:
#print("lijst",lijst[y])
dic_verwijder[lijst[y]]=""
print(dic_verwijder,"verwijder dic")
lijst_verwijder.append(dic_verwijder[y])
print(lijst_verwijder,"verwijder")
I'm trying to figure out why KeyError: 0 pops up when I try to run the program containing the code.
Code:
OpenDLG = wx.FileDialog(
self.win,
message='Please choose the quiz or quizes that you wish to use.',
defaultDir=os.getcwd(),
defaultFile='',
wildcard='*.*',
style=wx.OPEN | wx.MULTIPLE | wx.CHANGE_DIR)