In Python 3.x, the input() function behaves differently compared to Python 2.x's raw_input() function. In Python 3.x, the input() function evaluates the user's input as a Python expression, while in Python 2.x, raw_input() simply reads the input as a string.
To fix the error you're encountering in Python 3.x, you need to update your code as follows:
test = input("enter the test")
By enclosing the input() function within print(), you ensure that the value entered by the user is displayed correctly.