Change the Case (Exercise)
00:00 Here’s your next exercise. It’s about a change of case. In this exercise, your task is to change the case of strings. Just experiment and practice a bit with the different string methods that you can use for, yeah, changing case in strings.
00:16
And the task is to write a program that converts the following strings to lowercase first. And then you have four strings here. The first one is "Animals"
, the second one is "Badger"
, the third one is "Honey Bee"
, and the fourth one is "Honey Badger"
.
00:31 And after converting all of them to lowercase, then you should convert each of those strings to uppercase,
00:37
and you should print each of the strings on a separate line. So, the result of solving this task basically is going to be a whole lot of lines of print()
calls where you apply some string methods in it.
00:51 Give it a try, then hop over to the next lesson and compare your solution to mine.
Become a Member to join the conversation.