Ask coding questions

← Back to all posts
By any chance can I add Python inside a HTML file for a web project
OjasGandhe12 (1)

Hi! I am 12 years old so...do not know advanced coding but just a question

Comments
hotnewtop
QuickV (126)

I can't exactly understand the question... Could you explain it in more detail?

Coder100 (18915)

You can but it won't run.

Python and HTML are vastly different, HTML gets run in the browser, while python makes servers that serve the html.

InvisibleOne (3224)

What do you mean? Do you just want to iframe a python repl or actually have the webpage run the code.

[deleted]

i think u can use flask tho... not sure

[deleted]

Yes, you can, according to here
use karrigell python web server

However, the karrigell page says to use .pih, but replit doesn't support that, so NO. If this answered ur question pls mark it with a check mark thx.

oh and i gtg so this is super sloppy