Search Result

Collapse
2 results in 0.0041 seconds.
Keywords
Members
Tags
keyerror
  •  

  • eminep
    started a topic to remove the items

    to remove the items

    i have the next code;


    Code:
            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")
    ...
    See more | Go to post
    Last edited by Stewart Ross; Feb 4 '12, 04:13 PM. Reason: Added code tags

  • josh001
    started a topic Why does this cause KeyError: 0?

    Why does this cause KeyError: 0?

    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)
    ...
    See more | Go to post
Working...