avatar Bite 225. Swap case PyBites characters

In this Bite you will swap case all pybites characters (both lower- and upper case) for a given text.

Not much more as for our instruction, just complete convert_pybites_chars which should work like this:

>>> from convert_chars import convert_pybites_chars
>>> text = "Today we added TWO NEW Bites to our Platform, exciting!"
>>> convert_pybites_chars(text)
'todaY wE addEd tWO NeW bITES To our plaTform, ExcITIng!'

(Note that all converted chars are in the string pybites)

Have fun and code more Python!

Login and get coding
go back Beginner level
Bitecoin 2X

155 out of 159 users completed this Bite.
Will you be Pythonista #156 to crack this Bite?
Resolution time: ~18 min. (avg. submissions of 5-240 min.)
Pythonistas rate this Bite 2.83 on a 1-10 difficulty scale.
» You can do it! 😌

We use Python 3.8