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 Python Basics (2015) Shopping List App Shopping List Introduction

2 Answers

andren
andren
28,558 Points

You can, the thing you place in the parenthesis will be printed out whenever the user is prompted for input. > is used because Kenneth likely felt that it made the output look nicer, and made it more obvious that the program was waiting for input.

When it comes to programming there is rarely just one correct way to do things, and that is especially true when it comes to styling your program as that is inherently a subjective thing.

mohammed abdi abdulahi warsame
mohammed abdi abdulahi warsame
4,926 Points

okey, i thought it's not gonna work if i dont use it! but thanks alot

Todd East
Todd East
Courses Plus Student 3,602 Points

Thank you, I was wondering the same thing.

Subramanian K
Subramanian K
3,103 Points

It is just to have a cleaner output. You can use without that too. But user need to know that from this place they need to add an input.

So, You can use without that. Code will works fine.