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


#1



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 !


#2

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


#3

@balasubramanianrajav Can you show me your code?


#4

the_machine_goes = "Ping!"
print the_machine_goes


#5

Did you put the code on lines 5 and 6?


#6

yes it says indentation error


#7

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.


#8

thank you i made it now !


#9

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


#10

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

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

, cant make out the issue here.


#11

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


#12

Don't capitalize the p in print


#13

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