Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Practice

Instruction

Great! Let's create a simple function.

Exercise

Create a function named mind_your_tone() that accepts a string as its argument and checks whether the whole string is uppercase. If it is, then the function should return the string in lowercase. Otherwise, it should return the original text.

Stuck? Here's a hint!

In order to turn the string into its lowercase version, use the lower() function. Similar to the isupper() and islower() functions, it is used after a dot:

shout = "HEY!"
print(shout.lower())
>> hey!