def mathematica_code(expr, **settings):
 return MCodePrinter(settings).doprint(expr)

def mathematica_code ( expr , ** settings ) : return MCodePrinter ( settings ) . doprint ( expr )
converts an expr to a string of the wolfram mathematica code examples .