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
CHEN HAOMING
5,376 Pointsshopping_list.py
what does ">" means in new_item = input("> ")
Thx
# make a list to hold onto our items
shopping_list = []
# print out instruptions on how to use the app
print("What should we pick up from the store?")
print("Enter 'DONE' to stop adding items.")
while True:
# ask for new items
new_item = input("> ")
# be able to quit the app
if new_item == 'DONE':
break
# add new items to our list
shopping_list.append(new_item)
# print out the list
print("Here's your list:")
for item in shopping_list:
print(item)
1 Answer
Steven Parker
243,658 PointsThat symbol is known as a "prompt"
It's something shown on the screen to let the user know the computer is ready for something to be typed in. That particular symbol is often used as a shorthand to mean "please type something here".
CHEN HAOMING
5,376 PointsThank you Steven.
Rogerio de Oliveira
Courses Plus Student 21,319 PointsRogerio de Oliveira
Courses Plus Student 21,319 PointsHello Chen! It'll show in the prompt "> " (greater then symbol and space) and, yeah... it would be a little bit more specific. For example, you can write new_item = input("Include an item, please >") instead. Don't forget to write your string between quotes!