A.
stus=["zhangsan",86,"lisi",72,"wangwu",91,"taoyan",62] x=int(input("x:")) for i in range(len(stus)): if stus[i]==x: print(stus[i-1]+" is in class") else: print("no this score in class")
B.
stus=["zhangsan",86,"lisi",72,"wangwu",91,"taoyan",62] x=int(input("x:")) for i in len(stus): if i%2==1: if x==stus[i]: break if i print(stus[i-1]) else: print("no this score in class")
C.
stus=["zhangsan",86,"lisi",72,"wangwu",91,"taoyan",62] x=int(input("x:")) for i in range(len(stus)): if i%2==1: if x==stus[i]: break if i print(stus[i-1]) else: print("no this score in class")
D.
stus=["zhangsan",86,"lisi",72,"wangwu",91,"taoyan",62] x=int(input("x:")) for i in range(len(stus)): if i%2==1: if x==stus[i]: break if i print(stus[i]) else: print("no this score in class")