Created
January 15, 2012 16:26
-
-
Save longfin/1616333 to your computer and use it in GitHub Desktop.
flask reverse
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import request | |
@app.route("/reverse") | |
def reverse(): | |
message = request.values["message"] | |
return "".join(reversed(message)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment