Member-only story
“cAn yOu tYpE LikE ThIs”? Here’s How to Write a SpongeBob Mocking Converter in Python
You never know when you need to get the point across
OK, so you might be wondering what a Spongebob mocking converter is. A meme made from the series with letters where every other character is lower/upper case will create a sentence like this:
WoW, yOu'Re ReAlLy SmArT!
Which technically means “Wow, you’re dumb.”
Writing like that requires some cognitive load, and to be honest it’s a bit too much to be bothered with. Therefore, I decided it would be a good idea to create a Python tool that would do it for us.
Of course, tools like these already exist online. If you want to give it a go, you can try this service.
But let’s pretend you are in the wild with your laptop, for some reason, and you really need to do this offline.
How it Works
It’s quite simple. You write your sentence and hit enter. That’s it. Your sentence is returned in clear text for you to copy and paste into your chat application of choice.
This is what it would look like:

What we Need
It’s obvious that we will be working with the data type string
. We also need to find a way to convert letters to upper case and lower case. Fortunately for us, this is already built into Python, and super simple to use.
string
String
has a lot of great methods we can work with. Today we are looking at upper()
and lower()
.
These two methods have the power to change a letter to either UPPER CASE or lowercase.
name = 'MaRtIn'
print(name.lower())>> martinprint(name.upper())>> MARTIN
They convert the entire string to either upper or lower. When we write the code for our program, we will be working on individual letters, still using the same method.