CodingNeed.

2 · Make decisions · 7 MIN

Read and fix an error

Errors are clues you can investigate.

NameError points to a name Python cannot find. SyntaxError indicates invalid structure; IndentationError points to a block that is not aligned correctly. Reproduce a small example, read the message, then change one thing.

An error message is a signpost showing where the computer lost the trail.

Read the example

user_name = "Ada"
print(user_name)
Check the expected output
Ada

Your challenge

Fix the misspelled name in the starter. The function must return the input doubled.

Common trap

Names are case-sensitive; doubled and doubeld are different.

Next lesson: Reuse a function