Posted By

dorseye on 08/19/09


Tagged

list python comprehension


Versions (?)

Print + list comprehension


 / Published in: Python
 

  1. >>> ttup
  2. (9, 7, 4, 2, 1)
  3. >>> print [i for i in ttup]
  4. [9, 7, 4, 2, 1]

Report this snippet  

You need to login to post a comment.