This syntax is not available in Python 3. You can simply use
```
return [x^y for x, y in zip(data1, data2)]
```