CoCalc Public Filestmp / 2014-11-21-073000.sagews
Authors: Harald Schilly, ℏal Snyder, William A. Stein
def f(n):
a = 5
b = 0/0
c = 10

f(2)

Error in lines 1-1 Traceback (most recent call last): File "/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/.sagemathcloud/sage_server.py", line 865, in execute exec compile(block+'\n', '', 'single') in namespace, locals File "", line 1, in <module> File "", line 3, in f File "sage/structure/element.pyx", line 1851, in sage.structure.element.RingElement.__div__ (build/cythonized/sage/structure/element.c:17297) File "sage/rings/integer.pyx", line 1797, in sage.rings.integer.Integer._div_ (build/cythonized/sage/rings/integer.c:12952) File "sage/rings/integer_ring.pyx", line 445, in sage.rings.integer_ring.IntegerRing_class._div (build/cythonized/sage/rings/integer_ring.c:4578) ZeroDivisionError: Rational division by zero