Asking Questions
Show questions and read answers.
Asking Questions is a free Coding for Kids lesson on CoddyKit — lesson 2 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.
Time to Ask!
Hello game maker! 🎮 Today we ask the player our questions and READ their answers!
The input Command
To ask a question, we use input(). 💬
It shows a question and waits for the player to type an answer!
Asking and Saving
This asks a question and saves what the player types in a box. Run it and type an answer! ⌨️
answer = input("What color is the sky? ")
print("You said: " + answer)It Listened to You!
The program asked, you typed, and it saved your answer! 🎉
input() is how programs talk WITH people.
Showing a Question First
We can print a friendly message before asking. 😊
print("Welcome to the Quiz!")
name = input("What is your name? ")
print("Hi, " + name + "!")A Friendly Welcome
The game greeted the player by name! 👋
Friendly games are fun games. 🥳
Asking a Real Quiz Question
Now let us ask our first quiz question and save the answer. 🐱
answer = input("What sound does a cat make? ")
print("Your answer: " + answer)We Have the Answer!
The player's answer is safely stored in the answer box. 📦
Soon we will check if it is correct!
Asking More Questions
We can ask several questions, one after another. ❓❓❓
a1 = input("Cat sound? ")
a2 = input("Sky color? ")
print("You answered: " + a1 + " and " + a2)Two Answers Saved
We asked two questions and saved both answers! 🎉
Each answer goes in its own box.
Asking Mastered!
You learned input() to ask questions and save answers. 💬🏆
Next we check if they are correct!
Quick Check
Asking quiz! 💬
Question Pro!
Awesome! 🎉 Your game can ask questions now.
Next lesson: keeping score! 🏅
Frequently asked questions
Is the “Asking Questions” lesson free?
Yes — the full text of “Asking Questions” 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 “Asking Questions”?
Show questions and read answers. 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 2 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Asking Questions” 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
- Planning the Quiz
- Asking Questions
- Keeping Score
- Showing the Final Score