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/JustMedansh Sep 17 '26

coming from someone who hasn't thought this much, maybe you could use while.
instead of if op = + you could do while op = + and break at the end..?

1

u/badreddine_hanfouri Sep 17 '26

Good idea but it requires more lines of code which is not efficient

1

u/No_Soy_Colosio Sep 17 '26

Lines of code is not a measure of efficiency, and especially not when efficiency isn't what's optimized for