Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- intList = list(map(int, input().split()))
- height = int(input())
- pos = 0
- while intList[pos] > height and pos < len(intList) - 1:
- pos += 1
- print(pos + intList.count(height) + 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement