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!

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

igsm '
igsm '
10,440 Points

Meaning of: 'Enter your code here. Read input from STDIN. Print output to STDOUT' ?

Hey. I have tried one programming test and stumbled upon this: 'Enter your code here. Read input from STDIN. Print output to STDOUT'.

The task explained what should program output if N will be input. I do not understand, how 'N' input will be provided. Please can someone explain what does the above line mean?

1 Answer

Alan Dsouza
Alan Dsouza
10,998 Points

I believe all they want you to do is to ask the user for some input and then print out whatever they entered in the console. Should be as simple as this:

response = input("Enter your code: ")

print(response)