Hello,
Please, enclose your code between a ```python and a ```. This improves readability a lot.
best,
PC