+ 2

if(!<script type="python"></script>){???}else{???};

I know you understand the question. How do I link python to web codes? I've been googling and haven't really found what I'm looking for yet. I'm not a python coder, but I want to mess with it.

9th Aug 2017, 5:51 AM
Russel Reeder
Russel Reeder - avatar
6 Answers
+ 6
Try the answer to the question next to yours: https://www.sololearn.com/Discuss/605569/?ref=app
9th Aug 2017, 6:22 AM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 2
browsers cannot run python. I guess you can build a webservice in python and fetch your strings with javascript inside your html page
9th Aug 2017, 6:17 AM
Roland Sterkendries
Roland Sterkendries - avatar
+ 2
Of course the person who inspired the question in the first place... Checking the link within the link. Thanks guy.
9th Aug 2017, 6:28 AM
Russel Reeder
Russel Reeder - avatar
+ 2
According to that stack overflow post, it can be served, does that mean it can be hosted? Augh, just more questions, lol, following the rest of those links. Thanks again Kuba.
9th Aug 2017, 6:36 AM
Russel Reeder
Russel Reeder - avatar
+ 1
javascript works better in html pages :)
9th Aug 2017, 6:13 AM
Roland Sterkendries
Roland Sterkendries - avatar
0
Specifically I just want to pull a string output by some python and manipulate the outcome with some JavaScript. Without rewriting the code in JavaScript.
9th Aug 2017, 6:14 AM
Russel Reeder
Russel Reeder - avatar