Input to the Rescue
Learn to give input to a computer program.
We'll cover the following...
To maneuver around in Edward's world, he has to unlock a block before he can move forward or backward. Walk Edward to the yellow block and see what happens.
Answering Edward’s riddle
Edward can’t move past the yellow block unless he answers the question correctly. But Edward doesn't know what the answer is. Can you solve the question?
We can help Edward by inputting the correct answer. Go ahead and enter the answer to help Edward reach the green block.
Press + to interact
Input in Python
Communication is a two-way street. Just like we had print()
in one direction, where the computer’s code can print something on the screen for the end user, we should have a mechanism where the computer code can receive something from the user through a keyboard. For ...