From 57b31091adbd274dfb56af758e65e276605a4096 Mon Sep 17 00:00:00 2001 From: Christopher Strothman <31223109+sypesypher@users.noreply.github.com> Date: Thu, 10 May 2018 11:50:20 -0500 Subject: [PATCH] added even awesomer *whisper* capability test cases will need to be updated, but tests not on gihub --- DaBestLibEver.py | 10 ++++++++++ 1 file changed, 10 insertions(+) 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()