result of the m.group method called with an argument integer 0 converted into lowercase and result of the method value.title, substitute the result for t. call the function re.sub with 3 arguments: string "\d([A-Z])", lambda function with an argument m and return value,
return re . sub ( "\d([A-Z])" , lambda m : m . group ( 0 ) . lower ( ) , t )