What's wrong with my code?

I’ve tried to solve Uncle Johny question in python but have been getting the wring answer for one specific test case.
When I run it with the sample test case on any other platform like google colab or jupyter notebook I’ m getting the right solution.
Below is my code; Any help will be appreciated.
Thanks in advance

number_test_cases=int(input())
for i in range(number_test_cases):
number_songs=int(input())
k=input()
k1=k.split(’ ')
postion_song=int(input())
m=k1[postion_song-1]
n=m
k1.sort()
p=k1.index(n)
print("Output: ",p+1)

Anyone please?

Try writing print(p + 1) instead of print("Output: ", p + 1).

No still not working
Last testcase is giving wrong output

Primary fix:

Just use split() instead of split(' ').

Test case:

1
5
10 10 11 9 4
3

Expected Output

5

Fix: Instead of reading the sequence as a list of strings, read them as integers.

Rewrite this as

k1 = list(map(int, k.split()))

Reading list of integers as a string can cause errors. You should not do that unless and until specified.
You should replace this

k=input()
k1=k.split(’ ')

k1=list(map(int,input().split()))




[Click here to view solution ](https://www.codechef.com/viewsolution/60421242)

Thanks @anon29734293 @suman_18733097