to remove the items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eminep
    New Member
    • Feb 2012
    • 1

    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")
                    
    ##                new_dic[lijst[y]]=""
    ##                print ("newdic",new_dic)
                    
            #de sequentie die toegevoegd moeten worden
            for y in range(0,len(dict_ls)):#toevoegen
                if dict_ls[y] not in lijst:
                    #print("dict",dict_ls[y])
                    lijst.append(dict_ls[y])
                    print("toevoeging", lijst)
        
                    
           
        sys.exit() ]

    I have to remove my dic_verwijder from mine totale_reads.
    can someone help me ?
    Last edited by Stewart Ross; Feb 4 '12, 04:13 PM. Reason: Added code tags
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    #2
    eminep,

    I cannot understand your code or what your question is. Please read our Bytes FAQ "How to ask a question" and repost.

    Comment

    Working...