Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. for line in ( l.split(":") for l in ( l.strip() for l in someFile ) ):
  2. print line[0], line[3]
  3.  
  4. cleaned = ( l.strip() for l in someFile )
  5. split = ( l.split(":") for l in cleaned )
  6. for line in split:
  7. print line[0], line[3]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement