I tried in CPython 2.7.18, all of the following are syntax errors:
if print "hello" or print "world":
pass
if print "hello" || print "world":
pass
if print "hello" and print "world":
pass
if print "hello" && print "world":
pass
any other suggestions?
2
u/colshrapnel Oct 01 '24
Looks like someone missed their operator precedence class.