Q : 다음 코드의 결괏값은 무엇일까?

1
2
3
4
5
6
7
a = "Life is too short, you need python"

if "wife" in a: print("wife")
elif "python" in a and "you" not in a: print("python")
elif "shirt" not in a: print("shirt")
elif "need" in a: print("need")
else: print("none")

answer

1
shirt가 출력된다.