-Hello! So after the user enters strings, ['abc', 'def', 'ghi'] in this case, and I am trying to have the output of my function look like:
['abc', 'def', 'ghi]
1 abc
2 def
3 ghi
-This is my function:
import read_lines
lines = []
print(lines)
ci = 0
contin = True
while contin:
if len(lines) <= ci:
contin = False
else:
line = lines[ci]
ci += 1
print(ci, line)
-However, the output only shows:
['abc', 'def', 'ghi']
[]
-Side Note: I have to use a while loop for my homework assignment.