0
import sys
variable=sys.argv[1]
#print variable

"""<html>
<body>
    <p>Here is my variable: {{variable}} </p>
</body>"""

Question: Question: Hi , I am trying to get python variable inside HTML code . below is sample code .

File : test.py  Hell

I want output just Hello on screen . Please give any advice . 

Thanks  and Regards ,
Sox -
  • 592
  • 1
  • 9
  • 28
  • 1
    Possible duplicate of https://stackoverflow.com/questions/31965558/how-to-display-a-variable-in-html – Deesha Jul 18 '18 at 17:27
  • 3
    Possible duplicate of [How to display a variable in HTML](https://stackoverflow.com/questions/31965558/how-to-display-a-variable-in-html) – ti7 Jul 18 '18 at 17:37
  • Curiously, you also get duplicate duplicate flags! – ti7 Jul 18 '18 at 17:38

0 Answers0