csc-python-solutions/15/a2.py

5 lines
109 B
Python
Raw Normal View History

2021-02-17 09:17:41 +00:00
def findLine(prog, target):
for i in prog:
if i.split()[0] == target:
return prog.index(i)