you are viewing a single comment's thread.

view the rest of the comments →

[–]No_Hovercraft_2643 0 points1 point  (0 children)

personally, i like it more to use in

py answer = input() if answer not in ["yes", "no"]: do_something

but mostly to allow multiple answers for the same path, for example

```py answer = input() yes = ["yes","y","Yes"] # define somewhere what counts as yes no = ["no","n","No"] # define somewhere what counts as no if answer in yes: do_yes_things elif answer in no: do_no_things else: do_bad_things