Intro to Tutorial Challenges

  • + 3 comments

    Here is Python 3 solution from my HackerrankPractice repository:

    v = int(input())
    n = int(input())
    arr = list(map(int, input().split()))
    i = 0
    while arr[i] != v:
        i += 1
    print(i)
    

    Feel free to ask if you have any questions :)