Skip to content
EN · ReplayPUBLIC · 👁 0

how to print worlds in coding

9 beats

Lesson transcript

The full narration of this lesson in EN — read along, or revisit any part.

Hey Sumit, imagine you're an explorer with a blank map — and you need to fill it with entire worlds. [pause] That's exactly what 'print' does in coding.

Many people think 'print' literally prints on paper — but actually it just shows text on your screen. It's your way of talking to the computer.

Here's how it works, step by step. You write a special instruction — the computer reads it, then displays whatever you put inside the parentheses.

Try this yourself: open a code editor and type print("Your name"). Hit run — and watch your name appear. That's your first program.

Here's the most common beginner mistake: forgetting the quotes. Without them, the computer thinks you're naming a variable — and it gets confused.

Another mistake: mixing up single and double quotes. Stick to one style — double quotes are safest for beginners.

Now here's the fun part — you can print numbers too, without quotes. Try print(42) and see the number appear.

To get better, practice this: print your name, print a number, then print a sentence. If you see an error, check your quotes and parentheses — that's how you improve.

And that's the whole idea, Sumit. Print is your first tool — use it to talk to the computer, and soon you'll be building entire worlds.