Skip to content

Commit

Permalink
File program test
Browse files Browse the repository at this point in the history
  • Loading branch information
darshan527 committed May 11, 2021
1 parent 571fb03 commit 0add102
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions filepgm.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
l = []
with open('fil.txt', 'r') as fl:
sl = fl.readlines()
# while fl.:
# n = fl.readline()
# s = fl.readline()
# l.append((n, s))
# for i in range(0, len(sl), step=2):
# print(i, sl[i])
for i in range(len(sl)):
print(i, sl[i])

0 comments on commit 0add102

Please sign in to comment.