How to put msg.payload in a variable in Python to use it to be displayed on a LCD 16x2 Screen

Hi, in order to make code more readable and importable it is important to surround your code with three backticks
```
like this
```

You can edit and correct your post by clicking the pencil icon.
image

See this post for more details - How to share code or flow json