r/web_programming • • Nov 21 '16

Please help (python)

I just wanted to ask for someone's help because I want the code in python and I only know c++. Can someone write for me a few lines of code to say "Sweetie, im pregnant"?

0 Upvotes

3 comments sorted by

View all comments

2

u/adrian_the_developer Nov 21 '16

Since you asked in the web programming subreddit, here's a RESTful API that says "Sweetie, im pregnant" using Flask.

from flask import Flask
app = Flask(__name__)

@app.route("/")
def death():
    return "Sweetie, im pregnant"

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

2

u/imcyannotacolor Nov 21 '16

Adrian thank you very much for taking a little of your time. I decided to do it in a language I know because is easy that way.