Python Quest  /  Mission 3
Loading Python...
World 1 · Mission 3

Locked Gateway

Bolt has reached a locked gateway. A transmission contains the access code, but your Python program must read the code using input(), store it in a variable and send it to the gate.

Gateway Terminal

The transmission contains the code needed to continue.

Incoming transmission
2468
🔒
Gateway locked.
Mission objective

Read user input

Use input() to read the value entered into the gateway terminal. Store the result in a variable named access_code, then send that variable to Bolt.

Store input() in access_code
Send access_code to robot.unlock()
Unlock the gateway with the correct code

Check your understanding

What type of value does Python's input() return?

Mission complete!

You used input() to receive data, stored it in a variable and used that value to unlock the gateway.

Your Python code

Complete the two missing parts