Create a2.py

This commit is contained in:
Lukas Baumann 2021-02-17 10:17:41 +01:00 committed by GitHub
parent 940e8be416
commit 392fed1267
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
15/a2.py Normal file
View File

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