Re: Basics of Python,learning

2008-03-16 Thread Gabriel Genellina
En Sun, 16 Mar 2008 14:25:26 -0200, Guido van Brakel <[EMAIL PROTECTED]> escribi�: > Why is this not working,and how can I correct it? I guess you want to: a) read a single line containing many numbers separated by white space b) convert them to a list of floating point numbers c) print their m

Re: Basics of Python,learning

2008-03-16 Thread sturlamolden
On 16 Mar, 17:25, Guido van Brakel <[EMAIL PROTECTED]> wrote: > Why is this not working,and how can I correct it? [code skipped] There is no way of correcting that. Delete it and start over. -- http://mail.python.org/mailman/listinfo/python-list

Re: Basics of Python,learning

2008-03-16 Thread D'Arcy J.M. Cain
On Sun, 16 Mar 2008 17:25:26 +0100 Guido van Brakel <[EMAIL PROTECTED]> wrote: > Hello > > Why is this not working,and how can I correct it? What are you expecting it to do? For one thing, you are acting on a variable 'a' but it is never defined. The only objects that you have is z, y, b and th

Re: Basics of Python,learning

2008-03-16 Thread Mensanator
On Mar 16, 11:25 am, Guido van Brakel <[EMAIL PROTECTED]> wrote: > Hello > > Why is this not working, Why is _what_ not working? > and how can I correct it? Start over. > > > > > > > #!/usr/bin/env python > > #coding=utf-8 > > > z = raw_input ('Give numbers') > > y = z.split() > > b=[] > > > fo

Basics of Python,learning

2008-03-16 Thread Guido van Brakel
Hello Why is this not working,and how can I correct it? > #!/usr/bin/env python > #coding=utf-8 > > z = raw_input ('Give numbers') > y = z.split() > b=[] > > for i in y: > b.append(float(i)) > > def b(min,max,gem) > x=min(a) > x=gem(a) > x=max(a) > return a > > print