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 Collections (Retired) Dungeon Game Planning Our Dungeon

("> ")??? What exactly is input("> ") and why? I get the input part but..

Hi guys, might sound like a silly question but what exactly is input("> ") and why? I get the input and prompt part but..for what is the > in ("> ")? And why since it's not for bigger/lesser than..?

1 Answer

Josh Keenan
Josh Keenan
20,315 Points

Hey Andrew,

That's there for the end user, so when you ask for input it's not on an empty line, it outputs this

>

And only this will be output, the symbol doesn't matter it just is easier for a lot of users.

Play with it to see what I mean

Haha silly me..yes it makes complete sense, same as the prompt in python >>> ..one of those little UI/UX features that one takes for granted I guess and then ends up overthinking it! Thanks for the prompt reply!

Josh Keenan
Josh Keenan
20,315 Points

Happy to help mate! The community here is great