Why did Quora choose Python for its development?

John Bokma john at castleamber.com
Tue May 24 01:17:55 EDT 2011


"Octavian Rasnita" <orasnita at gmail.com> writes:

> From: "Daniel Kluev" <dan.kluev at gmail.com>
> a = [1,2]
> dict([a])
>
> Yes, but
>
> d = dict([a])
>
> is not so nice as
>
> $d = @a;

That will give you the number of elements in @a. What you (probably)
mean is %hash = @array;

-- 
John Bokma                                                               j3b

Blog: http://johnbokma.com/        Perl Consultancy: http://castleamber.com/
Perl for books:    http://johnbokma.com/perl/help-in-exchange-for-books.html



More information about the Python-list mailing list