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 trialmohammed abdi abdulahi warsame
4,926 Pointswhay are we using < in the input("<")
cant we just leave it empty?
2 Answers
andren
28,558 PointsYou 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.
Subramanian K
3,103 PointsIt 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.
mohammed abdi abdulahi warsame
4,926 Pointsmohammed abdi abdulahi warsame
4,926 Pointsokey, i thought it's not gonna work if i dont use it! but thanks alot
Todd East
Courses Plus Student 3,602 PointsTodd East
Courses Plus Student 3,602 PointsThank you, I was wondering the same thing.