Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #60952

Re: The input and output is as wanted, but why error?

From Neil Cerutti <neilc@norwich.edu>
Subject Re: The input and output is as wanted, but why error?
Date 2013-12-03 16:58 +0000
Organization Norwich University
References <387f5b5f-faf1-4715-8d49-e366be53fd00@googlegroups.com> <01b71b3a-f324-4850-a566-b5402e48baf0@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.3522.1386089951.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 2013-12-03, geezle86@gmail.com <geezle86@gmail.com> wrote:
>> x = input() 

Your first problem is that input() returns text only up the a
newline, and then stops.

So you are reading the initial number line, but never reading the
rest of the lines.

-- 
Neil Cerutti

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

The input and output is as wanted, but why error? geezle86@gmail.com - 2013-12-03 07:48 -0800
  Re: The input and output is as wanted, but why error? John Gordon <gordon@panix.com> - 2013-12-03 16:03 +0000
  Re: The input and output is as wanted, but why error? Neil Cerutti <neilc@norwich.edu> - 2013-12-03 16:10 +0000
  Re: The input and output is as wanted, but why error? geezle86@gmail.com - 2013-12-03 08:35 -0800
    Re: The input and output is as wanted, but why error? Dave Angel <davea@davea.name> - 2013-12-03 12:58 -0500
    Re: The input and output is as wanted, but why error? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-12-03 17:54 -0500
  Re: The input and output is as wanted, but why error? geezle86@gmail.com - 2013-12-03 08:36 -0800
    Re: The input and output is as wanted, but why error? Neil Cerutti <neilc@norwich.edu> - 2013-12-03 16:58 +0000
  Re: The input and output is as wanted, but why error? geezle86@gmail.com - 2013-12-03 08:38 -0800
    Re: The input and output is as wanted, but why error? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-03 16:51 +0000
  Re: The input and output is as wanted, but why error? rusi <rustompmody@gmail.com> - 2013-12-03 09:19 -0800
  Re: The input and output is as wanted, but why error? Denis McMahon <denismfmcmahon@gmail.com> - 2013-12-03 23:52 +0000

csiph-web