←Previous page

01PYTHON'S MARKS

Tiny marks have jobs.

A quote, colon, or bracket is not decoration. It gives Python a clue.

USE THESE SOON

Six marks to notice first.

" "

Quotes hold text

Words for people live between quotes: "hello".

( )

Parentheses hold what a command needs

print("hello") keeps the message inside them.

=

One equals stores a value

color = "orange" gives a value a name.

:

A colon opens a block

After if or for, it says: “the steps start here.”

#

A hash starts a note

Python ignores the note. It helps a person remember.

_

An underscore joins words

robot_color is one clear name without a space.

Meet four more. You do not need to use them yet.

[ ]

Brackets hold a list

A list keeps several items in order: ["moon", "star"].

{ }

Braces hold a collection

Later, Python can use them for labeled pairs or unique items.

/

A slash can divide

10 / 2 asks Python to divide ten into two parts.

\

A backslash changes the next mark

Inside text, \n means: start a new line.

Recognizing a mark is enough today. Its full lesson can wait.

YOUR TURN

Give each mark its job.

Try each tiny question. A wrong answer becomes something to review.

0Completed
7Not tried
0Review
01

Hold a message

print( ? hello ? )

What belongs around hello?

02

Give orange a name

color ? "orange"

Which mark stores the value?

03

Open a block

if battery_low ?

Which mark says the next steps belong here?

04

Give print what it needs

print ? "hello" ?

Which marks hold what print needs?

05

Write a note

? this line is for people

Which mark starts a note Python skips?

06

Join two words

robot?color = "orange"

Which mark joins the two words?

07

Fix PyBot's code

A mark is missing. Text needs quotes on both sides.

Goal output
Hello, I am PyBot
OUTPUT

Your work is saved here.

Want a fresh start? Clear only this page.

!
BIG IDEA

Every mark has one small job.

You do not need all of them at once. Look only for the mark used in today's idea.