Back
+10 XP
Concept

Quotes vs No Quotes

Quotes turn your text into pure dumb data that Python won't try to execute.

python
print("tacos")  # Prints: tacos
print(tacos)    # NameError: name 'tacos' is not defined

# 2. Quotes vs No Quotes Quotes turn your text into pure dumb data that Python won't try to execute: ```python print("tacos") # Prints: tacos print(tacos) # NameError: name 'tacos' is not defined ``` Without quotes, Python searches for a variable or command named `tacos`. When it finds nothing, it detonates with a red crash message.

Checkpoint

What happens if you run print(banana) without quotes?

Practice

Fix this broken line so it prints without crashing: print(Emergency Alert)

Terminal
01
Tap code blocks below to assemble
Available Blocks