problem = int(eval(input('Enter a math problem'))) print(problem)When using the code I have above it does evaluate the problem however it only does so using the PEMDAS rules. Is there a way I can make it evaluate from left to right no matter what the signs are?
buran write Mar-23-2021, 05:38 PM:
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.