next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Python :: length(PythonObject)

length(PythonObject) -- returns the length of a python object

Synopsis

Description

This is equivalent the Python len function.

i1 : length rs "'Hello, world!'"

o1 = 13
i2 : length rs "[1,2,3,4,5]"

o2 = 5