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

0

u/dariusbiggs Sep 17 '26

use a lookup table that maps the operand to a function that takes in the a and b arguments.