lundi 3 octobre 2016

How to display a terminal-like environment, that shows the output of Python scripts, within a web browser?

I've recently finished my courses in HTML and CSS, and am now sailing into Javascript. I have a decent background in Python at the moment, and would like to utilize my experience for web programming.

My question being, how could I go about creating a terminal environment that could display my python code within my HTML page? For example, if I had a script named hello.py, and it printed a hello world message to the user, how could I take that script, and display its outcome within my page, so when you loaded it up, it would read 'hello world'?

I hope this is clear. I'm not referencing using Python to display HTML, like a framework like Django, but rather how to take a script, run it, and display its output to a web page?




Aucun commentaire:

Enregistrer un commentaire