What is wrong with this code?


The question is: 

Printing Variables

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

01. Declare a variable called the_machine_goes and assign it the string value "Ping!" on line 5.
02. Go ahead and print the_machine_goes in line 6.

"""Assign the string "Ping!" to
the variable the_machine_goes on
line 5, then print it out on line 6!"""

the_machine_goes = "Ping!"
print "the_machine_goes"

Error I get is:
Oops, try again. Did you remember to print out "Ping!"?


Never mind, I found the answer. I was literally printing "the_machine_goes"..lol. Remove the quotation marks and it works.


i've remove it , and it still wrong !!!


make P capital bro!!


That's because you are printing "ping!" and not "Ping!"


thank you bro :wink:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.