invalid Syntax Error in python print statement using File -
print('group output sizes: |a| = {}, |b| = {}'.format(len(a),len(b)), file=stderr) ^ syntaxerror: invalid syntax can please error about? thought because of print syntax not think.
please help.
it looks trying use python 3 print syntax in python 2.
either use python 3 interpreter, or rewrite print so:
print >>sys.stderr, 'group output sizes: |a| = {}, |b| = {}'.format(len(a),len(b))
Comments
Post a Comment