Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialKhaled Issa
2,621 Pointswhy not correct?
why this code is not accepted?
def hello_student(name):
print("Hello", name)
2 Answers
Scott Bailey
13,190 PointsMake sure you read the question for the challenge correctly - it's asking you to return a string.
natan portnik
3,053 PointsIt is looking for you to insert the variable directly into the string, rather than making a tuple as you have done, this can be achieved by using a method taught earlier in the course where these brackets: {} are put inside the string and then .format() is used to insert what you want into the placeholder