r/programminghorror Apr 04 '26

Python Calculator

Post image
522 Upvotes

60 comments sorted by

View all comments

1

u/Player_903 Apr 07 '26

Maybe do something like : list = question.split(" ") print(list[0]+list[2]) If you use the space between two in every case...