LEVEL 4: STRING SECRETS 🧡

WHAT ARE STRINGS?

In the previous level, we mastered numbers, but now we need to master human language. In Python, any sequence of characters inside quotes is called a String. Whether it’s a single letter, a full sentence, or even a line of emojis, strings are how we tell the computer to handle text. At FLORA WORLD CODING, mastering strings is the key to creating dialogue for game characters.

One of the coolest things you can do with strings is called Concatenation. This is a fancy coding word for "gluing strings together." In Python, you can actually use the + sign to join two pieces of text into one.

MASTERY CHALLENGE

Create a variable for your first_name and another for your last_name. Use the + sign to combine them into a third variable called full_name and print it. For an extra challenge, try to print your name 10 times using the * operator!

I'M A STRING SPECIALIST! GO TO LEVEL 5 βž”

← BACK TO LEVEL 3 🏠 HOME