Advertisement
oquidave

tuples

May 13th, 2011
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1.  
  2. dates_list = ['2011-05-01','2011-05-02','2011-05-03']
  3. count_list = ['100','200','300']
  4. dates_count_tuple = {}
  5. for i in range(len(dates_list)):
  6. dates_count_tuple[thisdate[i]] = count_list[i]
  7.  
  8. #i want a tuple in the format
  9. ['2011-05-01':'100', '2011-05-02':'200', '2011-05-03':'300']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement