And if anything from list a falls into list b (list b is global list I made)
then that stuff would be removed from list b and
then print "you still have " ,list b
My problem is that its only removing the first element of list a from list b
And when I print out what you still have left it comes out like this
You still have 1 , 2 , 3 , 4 etc.. (just an example)
Rather than
You still have 1
You still have 2
etc..
I tried a couple things but i just get errors, kinda stuck, i know there is definitely something wrong with my for loop and the way i put in my lists but i dunno how to fix it.
for list_a in list_b:
list_b.remove(list_a)
print "you still have", list_a
This post has been edited by cnampheonix: 07 March 2010 - 10:18 AM

New Topic/Question
Reply




MultiQuote








|