Skip to content
Sign upLog in
← Back to Community

Converting Python to HTML

Profile icon
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
Profile icon
Neon-MinesMines
Profile icon
yammushiaayamay
Profile icon
Seth01Master
Comments
hotnewtop
Profile icon
Coder100

nope, you can only embed it :(

Profile icon
Seth01Master

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

Profile icon
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.

Profile icon
Coder100

yes, read this and this for why

@Seth01Master

Profile icon
Seth01Master

@Coder100
Thank you so much!

Profile icon
Seth01Master

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

Profile icon
19wintersp

@Seth01Master
This code works for me:

<iframe src="https://repl.it/@Seth01Master/Word-Bomb?lite=true&outputonly=true"></iframe>

Sorry for the late reply.

Profile icon
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.

Profile icon
myrccar

nice game

Profile icon
RYANTADIPARTHI

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