Guest User

Untitled

a guest
Apr 23rd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. def in_your_pants(arg):
  2.     return arg if not arg.endswith("!")
  3.                or not arg.endswith(".")
  4.                or not arg.endswith("?")
  5.                
  6.             else
  7.                 arg[:-2] + "in your pants" + arg[-1]
  8.                 if not arg[-3].isupper()
  9.                 else
  10.                     arg[:-2] + "IN YOUR PANTS" + arg[-1]
Add Comment
Please, Sign In to add comment