Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The sum function doesn't work in my Jupyter notebook. I get the following error message. Any help appreciated.

Traceback (most recent call last) Cell In[106], line 2 1 number=Integer(20240801) ----> 2 print(sum(number.digits()))

TypeError: 'sage.rings.rational.Rational' object is not callable