P11878.py, Python Solution of UVa string-processing problem: 11878 - Homework Checker. In this post we will see how we can solve this challenge in Python for UVa Online Judge.

Problem Description

Your younger brother has just finished his homework for the part “additions and subtractions for integers not greater than one hundred” and asks you to check the answers. Each question (together with the answer computed by your younger brother) is formatted either as a+b = c or a−b = c, where a and b are numbers prepared by the teacher (they are guaranteed to be non-negative integers not greater t

...

You can find the full details of the problem Homework Checker at UVa Online Judge

Solution: Please check the p11878.py snippet for the solution.

Solution originally posted at: Github by @sajjadt