0

In python language using eval() fuction we get the any expression result. Enter suppos (7*6/2) output 21

https://code.sololearn.com/cTlBxdhQ53YN/?ref=app

24th Sep 2018, 8:21 AM
Amol Walunj
Amol Walunj - avatar
2 odpowiedzi
+ 3
You should never use eval on user input because this will basically try to execute whatever the user enters and might allow them to delete files on your hard drive or worse.
24th Sep 2018, 12:15 PM
Anna
Anna - avatar
+ 1
yes, it works like that
24th Sep 2018, 9:56 AM
Francesco
Francesco - avatar