Question: I want to implement a profile popup like Books app on iOS. Do you know any package or something to make this? Thank a lot.

GIF below shows the behavior that I want to implement:
<https://gph.is/g/EvAxvVw>

Answer: 
**You can't check both the conditions using `(a == ("A" or "U"))`** because when you execute `"A" or "U"` in python interpreter you will get `"A"` (the first truthy value) similarly when you execute `"A" and "U"` you will get `"U"` (the last truthy value).

If you want simplified expression, you can use,

```
if a in ("A", "U"):
    # TODO: perform a task

```
It's not related to python. You can't further simplify the 2nd equation. 

a == "A" is one boolean -> x
a == "U" is one boolean -> y

x || y -> simplified version. 

Also, you can't apply distributive law to equality Operators(==, <, >). 

You can use the membership operator `in` check achieve above. 

```
if a in ["A", "U"]:
  do_something()

```