Printing Variables


#1



https://www.codecademy.com/courses/python-beginner-sRXwR/2/2?curriculum_id=4f89dab3d788890003000096


File "python", line 6
print the_machine_goes = "Ping!"
^
SyntaxError: invalid syntax

I don't understand the error. What is the correct code in line 6


#2

We cannot print a statement.

variable = value
print variable

#3

Oh of course! Thank you!


#4

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