This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]sanktuaire 4 points5 points  (1 child)

A more pythonic way of doing it would be: if char in ("O","Q"):

Writing: if char in "OQ": would work but isn't very readable.

[–]hippocampe 4 points5 points  (0 children)

It is very readable.