One Line Calculator
print(eval(input("Enter math expression to evaluate.\n"))) https://code.sololearn.com/cx1TgWN410RL
Here a safe version (David your version has the same security problem) https://code.sololearn.com/c0zzPGplv8Yy/?ref=app
VcC That is clever! Pretty much impossible to create malicious code out of the permitted input.