• 2022-06-29
    What will be the output of the following Python code? [br][/br]import re [br][/br]s = 'abc123 xyz666 lmn-11 def77' [br][/br]re.sub(r'\b([a-z]+)(\d+)', r'\2\1:', s)
    A: abc123 xyz666 lmn-11 def77
    B: 77def: lmn-11: 666xyz: 123abc
    C: abc123:', 'xyz666:', 'lmn-11:', 'def77:’
    D: abc123: xyz666: lmn-11: def77