Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 175 Bytes

python-1.md

File metadata and controls

14 lines (11 loc) · 175 Bytes

Python

# read file line by line
with open('filename') as f:
    content = f.readlines()
# Iterate over list
for i, _ in enumerate(nums):
  ..