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 trialDario Bahena
10,697 PointsWhat does the * mean in this context under New Terms? *input() - Function to get information from...h
*input() - Function to get information from a user. Always gets a string, even if the content is a number.
Is the * supposed to mean something? Does it mean that a variable has to be associated with it?
1 Answer
Iain Simmons
Treehouse Moderator 32,305 PointsI don't think you're actually meant to see the asterisk in this case, I think it's just a slight error in the Markdown syntax that Treehouse uses to format things such as forum comments/answers and the teachers notes.
Kenneth Love might be able to confirm his intention, but I think he meant to insert a space after the asterisk to make it format that line as an unordered list item (bullet point).
Even better would be a link to the Python docs, but I think he encourages the use of the builtin help
and dir
commands as much as possible.
Dario Bahena
10,697 PointsDario Bahena
10,697 PointsAwesome, I couldn't find anything that contained that in the interwebs so I thought to ask. I know that in python 2, raw_input() is used in favor of input() so I thought it might have had something to do with that but this makes sense. Thanks!