Kids Coding

Hello, World

Your first program: print a line. Change the words. Run it again.

KidsBasicHello, World

Your first program

print() is how Python talks. The words inside quotes are what it says. This program is one line. That is enough.

Hello, World

print("Hello, World!")

What to notice

  • print is the command. Keep the round brackets.
  • The message sits in quotes: "Hello, World!".
  • Python is picky about spelling. Print and pritn will fail.

Click Try it Yourself, change World to your name, and run it again.

When it goes wrong

If you forget a quote, Python stops and shows an error. Read the last line of the error. Fix that one thing. Run again.

This one works

print("Hello, explorer!")

Real life

A name sticker on the first day of class.

The computer needs the words in quotes, just like the sticker needs your name written on it.

Name sticker

print("Hello, my name is Sam")

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

Try it

Exercise 1: Print exactly Hello, StudyGrid! including the comma and the exclamation mark.

Show solution
print("Hello, StudyGrid!")

FAQ: Hello, World

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 hello, world 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 hello, world in this Kids Coding Python lesson (Hello, World).

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.