Hi David, On Apr 29, 2:42 pm, David Joyner <wdjoy...@gmail.com> 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 sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---