r/PythonLearning • • Jul 24 '25

this is my python calculating program

Post image

I'm started to learning python ....

70 Upvotes

7 comments sorted by

View all comments

1

u/Owly_chouette Jul 24 '25

2

u/JeLuF Jul 24 '25

Don't use eval. It's a very dangerous function. Used with untested user input, it can be easily exploited to run arbitrary code, like in your case.