Stuck in lesson 12.Hello


That is the lesson
Exercise goal: Practice using for loops.

We have some new hires at work, and their names are in the list names.

Your job:

Use a for loop to print "Hello " for every name in the list.

For example, the first line of output should be:

Hello Adam

and that is my code, result and the error message


It might have to do with the print statement, and the way it is written as a comma separated list. The lesson checker may be looking for a concatenated or formatted string.

"Hello, " + name


"Hello, %s" % name


Please be sure to include a link to the exercise when starting a new topic relating to a lesson. Thanks.


Thank you for replying

i will be sure next time to put a link to the lesson

thanks a lot for helping


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