If both x and y are in the same expression, it will only give one or the other. 
```
In [1]: degree(x*y)
Out[1]: 1
```