Stuck in lesson 12.Hello


#1

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

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

Instructions
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


#2

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

or,

"Hello, %s" % name

Aside:

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


#3

Thank you for replying

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

thanks a lot for helping


#4

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