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

mohan Abdul
PLUS
mohan Abdul
Courses Plus Student 1,453 Points

I am a little confused with terminology: user input, prompt user & input function

hi, i am little confused with terminology can someone please explain each one: user input, prompt user & input function. please use keep it simple, if you use code I may make more sense of it. thanks, I be sure to leave a rep point to who ever explains it.

1 Answer

Ben Slivinn
Ben Slivinn
10,156 Points

User Input:Developers often have a need to interact with users to get data.

Input Function: Python provides inbuilt function to read the input from the keyboard.

input ( prompt )

Note: python 2:

raw_input(prompt)

This function has an optional parameter, commonly known as prompt (User prompt), which is a string that will be printed on the screen whenever the function is called.

Good luck!