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 trialAdam Vasik
11,702 PointsMissing argument 'Name'
I don't know maybe there is something else causing this Error but I really don't know how to fix this.. What bothers me is that I can't pass string as argument :( I will figure out storing value then.. Please help
def hello_student(name):
return 'Hello ' + name
#Won't take my name as an argument, I also checked up in doc
hello_student("Adam")
hello = hello_student()
2 Answers
Steven Parker
231,248 PointsYou've almost got it:
hello_student("Adam") # this creates the instance but doesn't assign it to anything
hello = hello_student() # and this fails because a name must be provided as an argument
Combine the assignment with passing the argument and you should have it!
Adam Vasik
11,702 Pointsthanks