For everyone that stuck on 3. Strings & Console Output lines 11/16!


Replace this line with your code. 
This is for everyone that have problems to solve the code how to write it correctly !

When you get to section 11/16 in 3. Strings & Console Output , the code you need to input is this : 

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

if you want to let it like this the_machine_goes or themachinegoes its your choise !

so when you input the code after print dont put equals ( = ) ! ! ! 

This is the right code !

the_machine_goes = "Ping!"
print the_machine_goes

hope i helped you people !


i typed the same but it doesn't shows output kindly help !!!


@balasubramanianrajav Can you show me your code?


the_machine_goes = "Ping!"
print the_machine_goes


Did you put the code on lines 5 and 6?


yes it says indentation error


There should be no indents. Your code should look like this.

the_machine_goes = "Ping!"
print the_machine_goes

Make sure you place them on lines 5 and 6, though.


thank you i made it now !


You're welcome. Glad to help! :slight_smile:


I am stuck on this exercise as well.
what i have typed on the lines 5 and 6:

the_machine_goes = "Ping!"
Print the_machine_goes

File "python", line 6
Print the_machine_goes
SyntaxError: invalid syntax

, cant make out the issue here.


The letter P should be lower-case = p

If its Print it wont recognize it as command only strings maybe can be used whit 1 st letter upper-case

Hope i helped u


Don't capitalize the p in print


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