Write
```python
function repeating_fractions(numerator, denominator)
```
that given two numbers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part has repeated digits, replace those digits with a single digit in parentheses. 
For example:
```python
repeating_fractions(1,1) === '1'
repeating_fractions(1,3) === '0.(3)'
repeating_fractions(2,888) === '0.(0)(2)5(2)5(2)5(2)5(2)5(2)'
```
def repeating_fractions(num,denom):
    ans = str(num / denom)
    decimat_at = ans.find('.')
    start = ans[decimat_at+1] # beyond the decimal
    zgroup = ''
    retval = ans[0:decimat_at+1]
    for iii in range(decimat_at+1, len(ans)-1):
        end = ans[iii+1]
        if start == end:
            zgroup += end
            continue
        elif start != end and len(zgroup) > 0:
            retval += '('+zgroup[0]+')'
            zgroup = ''
            start = ans[iii+1]
        elif start != end and len(zgroup) == 0:
            retval += start
            zgroup = ''
            start = ans[iii+1]
        else:
            pass
    # Tidy up
    end = ans[len(ans)-1]
    if zgroup == '':
        retval += start
    elif len(zgroup) > 1 or start == end :
        retval += '('+zgroup[0]+')'
    return retval

def repeating_fractions(num,denom):
    ans = str(num / denom)
    decimat_at = ans.find('.')
    start = ans[decimat_at+1] # beyond the decimal
    zgroup = ''
    retval = ans[0:decimat_at+1]
    for iii in range(decimat_at+1, len(ans)-1):
        end = ans[iii+1]
        if start == end:
            zgroup += end
            continue
        elif start != end and len(zgroup) > 0:
            retval += '('+zgroup[0]+')'
            zgroup = ''
            start = ans[iii+1]
        elif start != end and len(zgroup) == 0:
            retval += start
            zgroup = ''
            start = ans[iii+1]
        else:
            pass
    # Tidy up
    end = ans[len(ans)-1]
    if zgroup == '':
        retval += start
    elif len(zgroup) > 1 or start == end :
        retval += '('+zgroup[0]+')'
    return retval
