Please correct your markdown for the code.
If you use the below format, you will get properly highlighted code with respect to Python language.

The result of the same is -

Currently in your code, it is very difficult to assess which is a comment and which is a keyword.