mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 23:10:17 +00:00
new file
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
line_number = 1
|
||||
with open('examples/favorite-people.txt', encoding='utf-8') as a_file:
|
||||
for a_line in a_file:
|
||||
print('{} {}'.format(line_number, a_line.rstrip()))
|
||||
line_number += 1
|
||||
Reference in New Issue
Block a user