flyingsliverfin
May 17th, 2009, 04:30 AM
im a complete newbie at python (only been using it for about 2 months and am not very devoted to learning, im too busy, and i think im rushing through A Byte of Python (my turorial))
im my code I have tried to combine what I learned just then, but i get some error messageI can't figure out :(. can some1 tell me whats wrong with it? (I just need to know)
listnow = ['a','b']
listlater = ['(c','(d']
print 'my lists are',listnow,listlater,'\nnow my list is',listnow,'\nlater it is',listlater
print '\nin 10 minutes I will finish',listnow[0],'\n then I will have to',listlater[0]
del listnow[0]
listnow.append(listlater)
del listlater
print 'my lists are now',listnow,listlater
im my code I have tried to combine what I learned just then, but i get some error messageI can't figure out :(. can some1 tell me whats wrong with it? (I just need to know)
listnow = ['a','b']
listlater = ['(c','(d']
print 'my lists are',listnow,listlater,'\nnow my list is',listnow,'\nlater it is',listlater
print '\nin 10 minutes I will finish',listnow[0],'\n then I will have to',listlater[0]
del listnow[0]
listnow.append(listlater)
del listlater
print 'my lists are now',listnow,listlater