Python two solutions👀. Short and Concise✅. Library and No Library🔥
1. A short solution using fractions from python stdlib\n\nfrom fractions import Fraction\nclass Solution:\n    def fractionAddition(self, expression: str) -> st
**1. A short solution using [fractions](https://docs.python.org/3/library/fractions.html) from python stdlib**\n```\nfrom fractions import Fraction\nclass Solution:\n    def fractionAddition(self, expression: str) -> str:\n        ans = Fraction(eval(expression))\n        return \'/\'.join(map(str, ans.limit_denominator().as_integer_ratio()))\n```\n\n**2. A consise no library solution**\n```\nclass Solution:\n    def fractionAddition(self, expression: str) -> str:\n        # get all the fractions separately: e.g: "-1/2+1/2" -> [\'-1/2\', \'1/2\']\n        fractions = re.findall(r\'-*\\d+/\\d+\', expression)\n        \n        # separate the numerators and denominators-> [\'-1/2\', \'1/2\'] -> [-1, 1] , [2, 2]\n        numerators, denominators = [], []\n        for fraction in fractions:\n            n, d = map(int, fraction.split(\'/\'))\n            numerators.append(n)\n            denominators.append(d)\n        \n        # find the lcm of the denominators\n        lcm = reduce(math.lcm, denominators)\n        # find with what number the denominators and numerators are to be multipled with\n        multiples = [lcm // d for d in denominators]\n        # multiply the multipler for each of the numerator\n        numerators = [n*m for n, m in zip(numerators, multiples)]\n        # multiply the multipler for each of the denominator\n        denominators = [d*m for d, m in zip(denominators, multiples)]\n        \n        # now the denominators are all equal; so take just one; and add the numerator\n        numerator, denominator = sum(numerators), denominators[0]\n        # find if the numerator and denomitors can further of be reduced...\n        gcd = math.gcd(numerator, denominator)\n        numerator //= gcd\n        denominator //= gcd\n        return f\'{numerator}/{denominator}\'\n```
['Math', 'Python3']