First please use 3x` encapsulation to format the code, ie
```python #add code here ```
Secondly, consider