raw_input() is renamed to input(). New input() function reads a line fromsys.stdin . Get the older behavior of input(), use eval(input()). Source: https://docs.python.org/3/whatsnew/3.0.html