Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- Python Snippets vol 33.
- Bonus snippet:
- stevepython.wordpress.com
- Read a file between a range of lines
- source: Unknown.
- """
- import itertools
- with open('test2.txt', 'r') as f:
- for line in itertools.islice(f, 2, 10):
- print(line)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement