Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This is probably because print is a built-in Python command and not an object, and somehow the notebook won't do anything with it. I'm not sure there is anything that can be done to fix this.

For the record, in the command line, we get this:

sage: print?
Type:       builtin_function_or_method
Base Class: <type 'builtin_function_or_method'>
String Form:    <built-in function print>
Namespace:  Python builtin
    print(value, ..., sep=' ', end='n', file=sys.stdout)

    Prints the values to a stream, or to sys.stdout by default. Optional
    keyword arguments: file: a file-like object (stream); defaults to the
    current sys.stdout. sep:  string inserted between values, default a
    space. end:  string appended after the last value, default a newline.