Python on Ubuntu
Eric S. Johansson
esj at harvee.org
Wed Sep 20 18:22:13 UTC 2006
Felipe Alfaro Solana wrote:
>
> > x = [ 1, 2, 3, 4, 5 ]
> > x.each { |i| print i }
> >
> > What do you think this code does?
>
> line 1 is a set, list or bag.
> line 2 is a method definition calculating the absolute value of i, and
> printing i which is undefined in both cases
>
>
> LOL
> Obviously, you're kidding, aren't you?... :-D
I never kid when I'm serious.
I'm not serious
---eric
More information about the ubuntu-users
mailing list