r/PythonLearning • • Sep 17 '26

Help Request any clue how to do this?

Post image

im on my first year of learning python in school is this even possible??

25 Upvotes

34 comments sorted by

View all comments

1

u/Many_Temperature_740 Sep 17 '26

Maybe you can use something like this expression = "2 + 3 * 4" result = eval(expression) print(result) # Output: 14