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 trialSamy Soffar
917 Pointsvariable = input("> ") What does input("> ") means ??
Does it tell python to look for the following inputs , and if you found a "certain" input do that the following ... or there is another explanation ?
1 Answer
deckey
14,630 PointsHey Samy, input is a function to catch user's input from the console
Function parameters, like '>' in this case, will be printed on the console.
Result of the input will be stored in a 'variable'.
so, for example:
your_name = input("What is your name:")
will wait for user input and store result in a variable your_name
cheers deckey
Samy Soffar
917 PointsSamy Soffar
917 Pointsoh i got it , thanks a lot ! ... because it's only one character that's what confused me : )