Ask Your Question

Revision history [back]

There is no such method, but you can do the following:

sage: [i for i in x.str(skip_zeroes=True) if i.isdigit()]
['3', '1', '4', '1', '6']