Saturday, April 18, 2015

Python 1

#/usr/bin/python

KEY = raw_input()
NUM = raw_input()
LIST = raw_input()
count = 0

LIST_SPLIT = LIST.split()

for i in LIST_SPLIT:
    if KEY == i:
        print count
    count = count + 1  

No comments:

Post a Comment