Log in from a computer to take this course

You'll need to log in from a computer to start Learn Python 2. But you can practice or keep up your coding streak with the Codecademy Go app. Download the app to get started.

apple storegoogle store
Learn

Great! Now that we’ve printed strings, let’s print variables

Instructions

1.

Declare a variable called the_machine_goes and assign it the string value "Ping!" on line 5.

Go ahead and print the_machine_goes in line 6.

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?