Hi David,
On Apr 29, 2:42 pm, David Joyner <[email protected]> wrote:
> sage: len(optional_packages()[int(1)])
> 41
>
> or
>
> sage: len(flatten(list(optional_packages())))
> 41
>
> is the right command (should int(1) really be needed?).
I would do:
sage: L=optional_packages()
sage: len(L[0])+len(L[1])
41
since L[0] comprises the installed and L[1] the not-yet-installed
packages.
Cheers,
Simon
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---