+ 1

How to save and send a python file in html format so that others can see?

Python to html

1st Apr 2020, 10:19 PM
Pradeep S R
Pradeep S R - avatar
5 Réponses
+ 1
plz elobrate the question, do u meam to embed in html or link via html or what
8th Apr 2020, 7:16 PM
JAHANGEER LATEEF WANI
JAHANGEER LATEEF WANI - avatar
0
To embed in html?
9th Apr 2020, 3:28 PM
Pradeep S R
Pradeep S R - avatar
0
Not possible. Python isn't like PHP; you can't just do this <?php However, if your web server has a Python interpreter you can write CGI scripts to make Python code run on your webpage. like By enclosing Python statements within a <% %> tag the Python interpreter will execute it. if u have complex code where Python and HTML are mixed, embed it between the tags <indent> and </indent> 
9th Apr 2020, 4:05 PM
JAHANGEER LATEEF WANI
JAHANGEER LATEEF WANI - avatar
0
Got it, Thanks
9th Apr 2020, 4:06 PM
Pradeep S R
Pradeep S R - avatar
0
you are welcome bro
9th Apr 2020, 4:07 PM
JAHANGEER LATEEF WANI
JAHANGEER LATEEF WANI - avatar