5 lines
109 B
Python
5 lines
109 B
Python
def findLine(prog, target):
|
|
for i in prog:
|
|
if i.split()[0] == target:
|
|
return prog.index(i)
|