请将以下代码中的if语句替换为一行三元运算符表达式，并将缩进去除：
```python
if data['score'] > 80:
    data['result'] = 'pass'
else:
    data['result'] = 'fail'
```
user
```python
data['result'] = 'pass' if data['score'] > 80 else 'fail'
```
assistant