3 ms·
Why not make it work in python 2 and 3? import sys if sys.version_info.major >= 3: raw_input = input eval(raw_input())
by Ivoah 10y ago
Why not make it work in python 2 and 3?
import sys
if sys.version_info.major >= 3:
raw_input = input
eval(raw_input())
- witty_username 10y agoI would write it as input = raw_input. Or, better, just use the six package.