私の解答
n = int(input())
li = [5, 12, 6, 84, 14, 25, 44, 3, 7, 20]
output = False
for ele in li:
if ele == n:
print("Yes")
output = True
break
if not output:
print("No")
前の解答例を参考にしたので、ほぼ同じになりました!
解答例
N = int(input())
li = [5, 12, 6, 84, 14, 25, 44, 3, 7, 20]
output = False
for ele in li:
if N == ele:
print("Yes")
output = True
break
if not output:
print("No")