Advertisement
oquidave

for loop

May 13th, 2011
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1.  
  2. x = ['first','second','third']
  3. y = ['david','peter','james']
  4.  
  5. for i,j in x,y:
  6. print "%s : %s \n" %(i,j)
  7.  
  8. #i want/expect
  9. first:david
  10. second:peter
  11. third:james
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement