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 trial

Python Introducing Lists Build an Application The Application

Tufan T.
Tufan T.
3,534 Points

Re. show_help() function:

Are we not defining this function to print the help options only?

Why do we include the question "What should we pick up at the store?" in the function definition? As far as I can understand, this question is not related with the help options.

Can somebody clarify this for me please? Thanks.

1 Answer

Steven Parker
Steven Parker
230,982 Points

No, this function does not only show help options. Perhaps a better name for the function might be "show_the_prompt_question_along_with_command_help()", if it wasn't so long!

But what it does fits in with the operational flow of the program, as you will see as the project progresses. And sure, you could write the program differently. Noticing how the examples might be improved is itself evidence of your learning progress!