0
Mathematics
n=int(input()) exp=input().split(" ") flag=-1 for i in range(len(exp)): if n==eval(exp[i]): flag=i break; if flag==-1: print("none") else: print("index "+str(i))
1 Answer
+ 3
Your question?
n=int(input()) exp=input().split(" ") flag=-1 for i in range(len(exp)): if n==eval(exp[i]): flag=i break; if flag==-1: print("none") else: print("index "+str(i))