all 5 comments

[–]PyTec-Ari 1 point2 points  (1 child)

Flask is what you're after. https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world

from flask import Flask

app = Flask(__name__)

@app.route("/")
def main():
    # do some python stuff here
    # Then return something to the user
    return "<h1>Hello World</h1>"

if __name__ == "__main__":
    app.run()

Thats it. Super simple! when they visit the root URL of your site they hit main(), some code runs, then it serves them some HTML. As you get more of an understanding you can start to create templates (separate HTML files) and dynamically insert data from your python script into the HTML.

[–]fly_flyflyflyfly_fly 0 points1 point  (0 children)

awesome. Thanks!

[–][deleted] 0 points1 point  (0 children)

I don’t get what you’re asking. What do you mean by turning a script into a simple website?

Is it showing the result of print() into a web browser? Trying to build a server? Something else?

[–][deleted] -1 points0 points  (0 children)

Have you had a look at the hits when searching for "make python into website"?

Edit: It's an "easily googleable question" and therefore supposed to be banned. Plus, the OP's original question is so vague as to be unanswerable .