Getting Input from the Player: Coding lesson for kids

In “Getting Input from the Player”, children learn about name = input("What is your name? "), age = int(input("Your age? ")) and str(age).

name = input("What is your name? "): input() pauses the program, shows your message, and waits for the player to type something — always comes back as a STRING.

age = int(input("Your age? ")): input() always gives text, even for numbers — wrap it in int() to actually do math with it.

str(age): The reverse of int() — turns a number back into text, so you can + it together with other text in a print().

This lesson is part of Python in Coding at Pearls Valley Academy — Real code, beginner-friendly syntax.

Each lesson starts with a short narrated, animated explanation, then hands-on practice. A wrong answer gets a gentle hint, never a penalty, and children earn stars and pearls as they go.