Welcome to Codecademy!

Changing Variables

Now you'll use a variable to quickly change your program. Variables are used to store some kind of data in a program that can be referenced elsewhere (often more than once).

Variables look different in different programming languages. In the code editor, there's a line that looks like this:

message = 'Change the message!';

This line creates a message variable and stores the Change the message! text in it.

Later in the program, message is used to reference that text inside drawName(), meaning that the message text appears on the screen.

Community Forums
Get help and ask questions in the Codecademy Forums
Report a Bug
If you see a bug or any other issue with this page, please report it here.