Problem 11, Printing Variables


#1



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


did you create a variable called the_machine_goes?


what am I doing wrong?


the_machine_goes = "Ping!"
Print "the_machine_goes"


#2

Well, you're printing out a string, "the_machine_goes" but really, you want to print "Ping!". Therefore, remove the quotation marks around "the_machine_goes" in your print statement and you're good to go.


#3

I removed the quotation marks, it looks like this now

"""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

but the error remains the same.


#4

I got it, P in Print was supposed to be small p . But why does it matter?


#5

It's Python's syntax.


#6

I am having a similar issue with variables

"the_machine_goes_on" = ping
print the_machine_goes_on

I have tried a number of different things nothing seems to be working.


+cmwilson3
#7

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