Ask coding questions

← Back to all posts
Converting Python to HTML
Seth01Master

Can I convert Python Code into HTML code?
I've been wanting to turn my python code into HTML so it can run on a website without actually opening the code when I download it as embed code from the website.
If anyone could find out how to convert the exact code into an HTML code while only showing the output, that would be much appreciated!!

Here is the code I want to convert:

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
yammushiaayamay
Seth01Master
Comments
hotnewtop
Coder100

nope, you can only embed it :(

Seth01Master

@Coder100 is it possible to make the embed code only show the output?

19wintersp

@Seth01Master It used to be possible with repl.run. Now, the closest we can get is to embed https://repl.it/@<username>/<replname>?lite=true&outputonly=true.

Coder100

yes, read this and this for why @Seth01Master

Seth01Master

@Coder100 Thank you so much!

Seth01Master

@19wintersp The HTML code won't work... i entered "Seth01Master" for @<username> and "Word-Bomb" for <replname>. Can you please help me?

19wintersp

@Seth01Master This code works for me:

Sorry for the late reply.

Seth01Master

@19wintersp Thank you so much! Also, I'm not on repl.it as much as i used to, so I don't really care your reply is late.

RYANTADIPARTHI

Converting python to html won't work. Maybe embeds but not real code. they are two totally different languages.