What Is a String?
Strings are text inside quotes.
What Is a String? is a free Coding for Kids lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Coding for Kids learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
Hello, Words! 👋
Welcome, code explorer! 🎉 Today we learn about strings. A string is just text that a computer can hold, like a word or a sentence.
Think of it as a little box that holds letters! 📦
Wrap It in Quotes 💬
To make a string in Python, we wrap our text in quotes like this: "cat".
The quotes are like a magic hug around the words. 🤗 Everything inside is the string!
print("cat")Saying Things Out Loud 📢
The word print tells Python to show something on the screen.
Run this code and watch your message pop up! ✨
print("I love coding!")Strings Can Be Long 📜
A string can be one word or a whole sentence. As long as it has quotes around it, Python is happy! 😄
print("Dragons are awesome and they can fly!")Single or Double Quotes 🔤
You can use double quotes "like this" or single quotes 'like this'. Both work!
Just remember: start and end with the same kind. 🪄
print('Hello, friend!')Numbers as Text 🔢
Surprise! Even numbers can be a string if you put quotes around them, like "7".
Then Python treats it like text, not math. 🧮
print("My lucky number is 7")Emojis Are Fun Too 🦄
Strings can hold emojis! You can put a unicorn, a star, or a heart right inside your quotes. 💖
print("I am a coding star! ⭐")Empty Strings 🫥
A string can even be empty! Just two quotes with nothing inside: "".
It is like an empty treasure box waiting to be filled. 🧰
print("")
print("Now something!")Save a String in a Box 📦
We can put a string in a variable (a named box). Here we make a box called pet and put "dog" inside.
pet = "dog"
print(pet)Change Whats in the Box 🔁
The cool part: you can change the string in a box anytime!
First it holds a cat, then a fish. 🐱🐠
animal = "cat"
print(animal)
animal = "fish"
print(animal)You Are a String Wizard! 🧙
Awesome work! Now you know a string is text in quotes, and print shows it on screen.
Try writing your own name in quotes! 📝
print("My name is here!")Quick Check 🧠
Time for a fun question! 🎯 Which one is a string?
Recap Time! 🌟
You did it! 🎉 Here is what we learned:
- A string is text in quotes
- Use
"or'quotes printshows it on screen- Boxes (variables) can hold strings
You are a word wizard now! 🧙♀️
Frequently asked questions
Is the “What Is a String?” lesson free?
Yes — the full text of “What Is a String?” is free to read here on the web, and the Coding for Kids course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Coding for Kids course, upgrade to CoddyKit PRO.
What will I learn in “What Is a String?”?
Strings are text inside quotes. You practise Coding for Kids with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Coding for Kids?
No prior experience is required. Coding for Kids on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “What Is a String?” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Coding for Kids lesson?
Yes. Every Coding for Kids lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- What Is a String?
- Joining Words
- Asking for the Name
- Big and Small Letters