Suppose I have a list of strings as follows:

```
mylist = ['x','y','z','a','b','c']

```

I would like to select certain element and convert them to 1, and the remaining element to 0. For example, I like to select 'z','b','c', so the resulting list would be [0, 0, 1, 0, 1, 1]
I tried to use list comprehension, but I am not too familiar with how exact this should be done. I have the following, but it does not seem to work

```
[1 for i in mylist if i in ['z','b','c']]

```