That makes it a different issue altogether.
Assuming your description is accurate and I’m managing to read it accurately, then codecademy isn’t dealing with io streams correctly there.
I suggest ditching taking input, and/or doing it locally instead.
Rather than hard-coding 3, it would be nicer if the program read until the end of input. This is a little bit tricky because end of input won’t show up like regular text. The easiest way to go about it is to treat standard input like a file (from your program’s perspective, it is a file)
for line in sys.stdin:
There’s also a neat module which checks the arguments provided to the program for a file name, and if so it reads from that file, otherwise it reads from stdin:
for line in fileinput.input():
Beware of line terminators at the end. You may need/want to strip the lines before using them.
raw_input is just a helper for sys.stdin, same for print and sys.stdout