Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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
19,528 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
19,528 Points

Happy to help mate! The community here is great