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

```
Use `in`: This will be simpler 

```sh
if a in ('A', 'U'):
    #do something 

```

Understanding your code.

```sh
if (a == ("A" or "U")):
   # do something

```

Python checks for `"A" or "U"` which `"A"` is return because of how truthfulness works. If the first is true, then the `or` is not evaluated. Since only empty string is False, the first none empty string will be selected and there your code is equivalent to:

```sh
if (a == "A"):
   # do something

```