11. Printing Varibles


#1

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

i know that i typed it out right but everytime i submit is it just prints out
the_machine_goes
none

can i please get some help


#2

The above line may be removed.

The issue is that you are printing a string, not a variable.

print the_machine_goes

without quotes so the value referred by the descriptor is what prints.


#3

I was having a huge issue with this module as well. Part of my issue was what mtf mentioned. But there was also an issue with the system not registering changes I was making. Be sure to reset the code completely every time you try something new or the system may not register the changes.