csc-python-solutions/15/a/2 - Go to it!.py
2021-02-17 12:31:57 +01:00

5 lines
109 B
Python

def findLine(prog, target):
for i in prog:
if i.split()[0] == target:
return prog.index(i)