There is built-in function enumerate which is suitable for numerating lines, something along these lines:
>>> spam = "bacon"
>>> for i, char in enumerate(spam, start=1):
... print(f"Character {i}: {char}")
...
Character 1: b
Character 2: a
Character 3: c
Character 4: o
Character 5: n
Lines in files end with newline. These can be stripped: from end using str.rstrip() or from both ends str.strip(), combined with enumerate something like below :
>>> data = ['192\n', '193\n', '194\n']
>>> for row in data:
... print(row)
...
192
193
194
>>> for i, row in enumerate(data, start=1):
... print(f"Line {i}: {row.rstrip()}")
...
Line 1: 192
Line 2: 193
Line 3: 194