Python on Ubuntu

Felipe Alfaro Solana felipe.alfaro at gmail.com
Wed Sep 20 17:57:57 UTC 2006


> > 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20060920/1b1ca2bf/attachment.html>


More information about the ubuntu-users mailing list