Welcome to the Treehouse Community
Looking to learn something new?
Paul Resendez2,990 Points
Shopping List Introduction
At 4:30ish in the Shopping List Introduction video I am unclear as to what Kenneth is doing. He talks about using a simple prompt and uses a single '> ' symbol. Could someone help me out by elaborating on this? What exactly is he doing? Please help!
Chris FreemanTreehouse Moderator 67,986 Points
The prompt can be any text string. The use of "*> *" is an arbitrary example. Whatever string is used as the argument to the
input() function will be displayed to the user. Sometimes a specific question can be used as a prompt:
input("What do you need? ")
What do you need?
The cursor is left at the end of the prompt. A space is often left at the end if the prompt string to leave a visual gap between the prompt and the users input.
More info in Python docs input()