Learn String Manipulation by Building a Cipher - Step 4

Tell us what’s happening:

The following code looks fine, but I get a message saying, my code does not pass: why?

greet = ‘Hello!’
print(greet)

Sorry, your code does not pass. Keep trying.

You should pass text to the print() function by adding the name of this variable within the opening and closing parentheses.

Your code so far


# User Editable Region

greet = 'Hello!'
print(greet)

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 4

Hi and welcome to the forum!
your variable isn’t greet. That’s just an example given to you so you can learn from that. Reset the step try printing the variable you’re given.
Good luck!

1 Like