+ 8
One Line Calculator
print(eval(input("Enter math expression to evaluate.\n"))) https://code.sololearn.com/cx1TgWN410RL
4 odpowiedzi
+ 1
Here a safe version (David your version has the same security problem)
https://code.sololearn.com/c0zzPGplv8Yy/?ref=app
+ 4
VcC That is clever! Pretty much impossible to create malicious code out of the permitted input.
- 1
Nice !!! In 4 lines another one with trigonometry , deep learning or any existing python package. Plus some serious security holes !
https://code.sololearn.com/cXmeQ5FUwpsQ/?ref=app