100% WORKING || EASY PYTHON3 SOLUTION || USING THE SIMPLEST MATHEMATICAL APPROACH
Approach\nIn this approach, what we are doing is listed below step by step:\n1. Firstly we need to import the required libraries\n2. After that, we need to extr
# Approach\nIn this approach, what we are doing is listed below step by step:\n1. Firstly we need to import the required libraries\n2. After that, we need to extract the denominator of each term involved in the expression. Using regex, we retrieved and stored it in a list. You can also pass that list directly to the lcm function.\n3. After that, we find the least common multiple (LCM) of all the denominators obtained earlier. This LCM serves as the limit_denominator in the rational-to-fractional conversion.\n4. Finally, we simplified our rational solution (obtained using the evaluate function) into the form of a fractional solution and returned it in the numerator/denominator format.\n\n\n# Code\n```\nfrom fractions import Fraction\nfrom re import findall\nfrom math import lcm\n\nclass Solution:\n    def fractionAddition(self, expression: str) -> str:\n        ln = list(map(int, re.findall(r"\\/(\\w+)+",expression)))\n        lm = lcm(*ln)\n        m = Fraction(str(eval(expression))).limit_denominator(lm)\n        return f"{m.numerator}/{m.denominator}"\n\n\n```
['Python3']