Python exercise. help!

how to write hello world in python exercises? i cant seem to pass that first step. thanks

Please provide all the details that others might need to help you. Otherwise we would have to guess the error.


The instructions tell you what to do:

  • Modify the provided code so that it produces the string “Hello, World!”.
  • Run the test suite and make sure that it succeeds.
  • Submit your solution and check it at the website.

This is the initial code:

def hello():
    return 'Goodbye, Mars!'

So all you have to do is modify the string that gets returned.


Did you perhaps print the string instead of returning it?

2 Likes

I found it. thanks

1 Like