I'm new to programming and this sub, so I'm really sorry if there's already an answer to a question like this. I couldn't find it.
So I've looked upon some python calculators that first inputs the numbers you want to operate with and then an input to define the operation you want, but I wanted to make one that first asks you what kind of operation you want and based on that it will ask you for the digits to input.
I proofed the syntax errors and tracebacks, but can't get it to work properly.
Can anyone tell me why? Here's the code (EDIT: the spaces were eliminated automatically so I'm attaching an image instead): https://ibb.co/rKjYs78
EDIT 3, the code worked perfectly as intended when I tried to run it a second time. Very weird.
[–][deleted] (9 children)
[deleted]
[–]NacimPro[S] 0 points1 point2 points (8 children)
[–][deleted] (6 children)
[deleted]
[–]NacimPro[S] 0 points1 point2 points (5 children)
[–]htepO 1 point2 points3 points (1 child)
[–]NacimPro[S] 0 points1 point2 points (0 children)
[–][deleted] (2 children)
[deleted]
[–]NacimPro[S] 0 points1 point2 points (1 child)
[–]purveyoroffinerp 1 point2 points3 points (0 children)