r/Python • u/Tuganazy • Oct 27 '14
Help me understand a bit about lists
i have this code
list1 = [ ['user1', '18/02/1996', '999999999'], ['user2', '19/02/1997', '888888888'] ]
for x in list1:
print(x)
for user, date, number in x:
print(user, date, number)and it doesn't work, anyone can help me?
0
Upvotes
1
0
u/thisisthemurph Oct 27 '14
Ensure your code is formatted correctly in your question. What error are you getting? A description of the error always helps.
5
u/karmarauder Oct 27 '14
Try /r/learnpython.