I've been trying to find the answer everywhere but I can't seem to find it. I want to be able to return a statement in my function with an if and (an) elif/s but without an else (just for learning purposes). I am aware that you can do something like this:

```
def my_func(s):
    return "a list" if type(s) == list else "a string" if type(s) == str else "not list or string"

```

The above shows how python allows you to have an if, as many elifs and an else, but is there any way to be able to have an if and (an) elif/s without the need of an else at the end?
Something to note is that I am speaking about having it on the same line as the return statement, not an expanded one checking on multiple lines.