Asked
Active
Viewed 22 times
1 Answers
0
The first elif block always returns True
.
Use in
instead:
elif answer in {"forty-two", "forty two"}:
Take a look here for good explanations

bitflip
- 3,436
- 1
- 3
- 22
-
1Thank you very much (:. im pretty new to coding soo i dont know what im doing half of the time. – Rakan Oct 22 '22 at 22:09
-
No problem, you're welcome, everyone started at some point! :) I've voted to close the question as it is a duplicate of the post i linked. – bitflip Oct 22 '22 at 22:12