My issue
how can i get indices in python
My code
# cook your dish here
n=int(input())
r=list(map(int,input().split()))
for x in r:
Problem Link: CHEFDETE Problem - CodeChef
how can i get indices in python
# cook your dish here
n=int(input())
r=list(map(int,input().split()))
for x in r:
Problem Link: CHEFDETE Problem - CodeChef
@nageswarijampa
Plzz refer the following python code for better understanding of the implementation .
# cook your dish here
n=int(input())
r=list(map(int,input().split(" ")))
# criminal_list=list(range(1,n+1)
r=set(r)
result=""
for ele in range(1,n+1):
if ele not in r:
result+=f'{ele} '
print(result)