1.定义列表, 获取x

a = [3, 45, 9, 8, 12, 89, 103, 42, 54, 79]
x = int(input())

2.循环找到x

for i in a:
    if i!=x:
        print(i)
        continue
    break