Python Basics
Coding Vocabulary
Scratch Logic
Fun Facts in Tech
Debug This!
100

What is the keyword used to define a function in Python?

def

100

What do we call a mistake in your code?

A bug

100

What block starts your code when the green flag is clicked?

when green flag clicked block

100

What does “URL” stand for in a website link?

Uniform Resource Locator

100

What's wrong with this code? print("Hello)

Missing closing quote → print("Hello")

200

What is the symbol for a comment in Python?

# (hashtag)

200

What block or command do we use to repeat code over and over?

A loop

200

What block do you use to make a sprite move 10 steps?

move 10 steps block

200

Who is the CEO of SpaceX and known for co-founding Tesla and X (formerly Twitter)?

Elon Musk

200

What’s wrong here?
x = input("Enter a number")
print(x + 5)

input() returns a string → convert to int: print(int(x) + 5)

300

What type of data is this: "Hello"?

string

300

What do we call a container that stores a value like a number or word in a program?

A variable

300

What block checks if two things are touching in Scratch?

if <touching [sprite]> block

300

What programming language is used to build web pages along with HTML and CSS?

JavaScript

300

What’s wrong?
if 10 > 5:
print("Ten is greater")

Indentation error → indent the print line

400

What is the output of: print(3 + 2 * 2)?

7 (order of operations: 2×2 = 4, then 3+4 = 7)

400

What is a function in coding?

A set of instructions that can be reused (like a mini-program inside your program)

400

What’s the difference between forever and repeat blocks?

forever loops forever; repeat runs a set number of times

400

What is the name of the parent company that owns Google, YouTube, and other tech subsidiaries?

Alphabet Inc.

400

What’s the error?
def say_hi:
    print("Hi")

Missing parentheses → should be def say_hi():

500

What’s wrong with this code?
def greet():
    print("Hi")
greet

Missing () to call the function → should be greet()

500

What is the process of fixing errors or bugs in your code called?

Debugging

500

How do you make a sprite follow the mouse pointer?

Use point towards mouse pointer + move in a forever loop

500

What year was the first iPhone released?

2007

500

What’s wrong with this loop?
for i in range(3)
    print(i)

Missing colon → should be for i in range(3):

M
e
n
u