You should try it with 'no' and it will print twice. Why? You iterate over answer characterwise:
Can be illustrated as:
for reservation_reply in reservation_prompt: # i.e.: for char in reservation_prompt:As no character match 'yes' else suite is executed by number of iterations over user input.
Can be illustrated as:
>>> reservation_prompt = 'yes' >>> for reservation_reply in reservation_prompt: ... print(reservation_reply) ... y e s
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.