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

**URL:** <https://discourse.nodered.org/t/how-to-put-msg-payload-in-a-variable-in-python-to-use-it-to-be-displayed-on-a-lcd-16x2-screen/47474>\
**Category:** General\
**Created:** [22 June 2021 11:14 UTC](https://discourse.nodered.org/t/how-to-put-msg-payload-in-a-variable-in-python-to-use-it-to-be-displayed-on-a-lcd-16x2-screen/47474 "2021-06-22T11:14:35Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [22 June 2021 11:16 UTC](https://discourse.nodered.org/t/how-to-put-msg-payload-in-a-variable-in-python-to-use-it-to-be-displayed-on-a-lcd-16x2-screen/47474/2 "2021-06-22T11:16:28Z")

</div>

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](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/b/6bc96fae27586508856b94f85414b74a54b7daf1.png)

See this post for more details - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

---

_[View the full topic](https://discourse.nodered.org/t/how-to-put-msg-payload-in-a-variable-in-python-to-use-it-to-be-displayed-on-a-lcd-16x2-screen/47474)._
