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

Popular posts from this blog

visual studio - vb.net filter binding source by time -

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -