Task
You are given an expression in a line. Read that line as a string variable, such as var, and print the result using eval(var).
NOTE: Python2 users, please import from __future__ import print_function.
Constraint
Input string is less than 100 characters.

Hackerrank python evaluation problem solution in python

Problem solution in python 2 programming language.

from __future__ import print_function
eval(raw_input())

Problem solution in python 3 programming language.

eval(input())