Kids Coding

Words and Strings

A string is text in quotes. You can join words with + and print a sentence.

KidsBasicWords and Strings

A string is text

Anything in quotes is a string: a row of characters. Names, sentences, and secret codes are strings.

Strings

print("hello")
print("hello" + " " + "world")

Glue with +

+ on strings joins them. There is no extra space unless you add one yourself.

Remember the space

print("Good" + "morning")
print("Good" + " " + "morning")

Strings and numbers are different

2 + 2 is 4. "2" + "2" is "22". Quotes change the meaning.

Not the same

print(2 + 2)
print("2" + "2")

You cannot add a string to a number. print("Score: " + 10) fails. Turn the number into text with str(10), or use a comma in print.

Real life

Writing a birthday card.

You glue “Happy” and “Birthday” together. + on strings does that join.

Birthday card

print("Happy" + " " + "Birthday" + ", " + "Riley" + "!")

Change one word. Run it. That is how this idea shows up outside the lesson.

Try it

Exercise 1: Join your first name and last name with a space and print the full name.

Show solution
print("Sam" + " " + "Lee")

FAQ: Words and Strings

Common questions about this page.

What is StudyGrid Kids?

StudyGrid Kids is a free coding path for children: Basic, Intermediate, and Advanced. Lessons use Python in the browser. No account and no install.

Should I run words and strings examples locally for better learning?

Yes. Use the browser editor on StudyGrid for a quick check, then Download the example and run it on your computer. Local runs show real errors and the real toolchain, which is one of the fastest ways to learn words and strings in this Kids Coding Python lesson (Words and Strings).

Which kids level should we start with?

Start at Basic if the child has never written code. Choose Intermediate if they can print, use variables, and write a simple if. Choose Advanced if they already use loops and lists.

Do kids need an account or an app?

No. Kids pages are public. Code runs in the Try Python editor at /try. We do not ask children for a name or an email.

What language do kids learn?

Python, with a first HTML page in Intermediate and Advanced. After Advanced, the main Python tutorial is the next step.

Is the kids coding track free?

Yes. The Kids home, the three levels, and the Python editor on StudyGrid (studygrid.in) are free.