Re: Learning question...

2008-05-07 Thread Terry Reedy
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Any idea why the following program does not work? I was learning IO on | Python and the following generates a TypeError: range() integer end | argument expected, got str. | I am a beginner. | | | # prin

Re: Learning question...

2008-05-07 Thread swapsun
On May 7, 8:42 am, Thomas Woelz <[EMAIL PROTECTED]> wrote: > On 7 maio, 09:25, [EMAIL PROTECTED] wrote: > > > Any idea why the following program does not work? I was learning IO on > > Python and the following generates a TypeError: range() integer end > > argument expected, got str. > > I am a beg

Re: Learning question...

2008-05-07 Thread swapsun
On May 7, 8:36 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Any idea why the following program does not work? I was learning IO on > > Python and the following generates a TypeError: range() integer end > > argument expected, got str. > > I am a beginner. > > Bec

Re: Learning question...

2008-05-07 Thread Thomas Woelz
On 7 maio, 09:25, [EMAIL PROTECTED] wrote: > Any idea why the following program does not work? I was learning IO on > Python and the following generates a TypeError: range() integer end > argument expected, got str. > I am a beginner. > > > # print input name (str k

Re: Learning question...

2008-05-07 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > Any idea why the following program does not work? I was learning IO on > Python and the following generates a TypeError: range() integer end > argument expected, got str. > I am a beginner. Because raw_input does return you as string which you need explicitly convert to