On 2013-12-03, geezle86 at gmail.com <geezle86 at 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