Skip to content

Instantly share code, notes, and snippets.

@lfarah
Created April 6, 2015 03:48
Show Gist options
  • Save lfarah/526fe40f859e0194c272 to your computer and use it in GitHub Desktop.
Save lfarah/526fe40f859e0194c272 to your computer and use it in GitHub Desktop.
class get_user:
def GET(self, user):
answer = ""
if isinstance(user, numbers.Integral):
answer = str(int(user)*3)
else:
answer = user + " potato"
return answer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment