Printing Variables


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


We cannot print a statement.

variable = value
print variable


Oh of course! Thank you!


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