diff --git a/DaBestLibEver.py b/DaBestLibEver.py index 964b7ec..e42f6e0 100644 --- a/DaBestLibEver.py +++ b/DaBestLibEver.py @@ -12,6 +12,16 @@ def shout(stuff): """ return stuff.upper() + "!!!!!" +def whisper(stuff): + """str -> str + Converts the string pass to it to all uppercase, with asterics. + >>> whisper("HELLO") + '*hello*' + >>>whisper("GoOdByE") + '*goodbye*' + """ + return '*' + stuff.lower() + '*' + if __name__ == "__main__": import doctest doctest.testmod()