• ksynwa
    link
    fedilink
    arrow-up
    3
    arrow-down
    2
    ·
    4 years ago

    Maybe not. It will output to stderr, while print writes to stdout. Could be wrong though.

    • oriondOP
      link
      fedilink
      arrow-up
      2
      ·
      4 years ago

      This is whay I get on a python console:

      [GCC 8.3.0] on linux
      Type "help", "copyright", "credits" or "license" for more information.
      >>> print('SintaxError: invalid syntax':
        File "<stdin>", line 1
          print('SintaxError: invalid syntax':
                                             ^
      SyntaxError: invalid syntax
      >>> ```