In a nested call, Python evaluates the inner call first. Its return value becomes the argument to the outer call.
def trim(text):
return text.strip()
print(len(trim(" map "))) # 3The length calculation sees the cleaned string. Reversing the calls would hand trim an integer.
Two helpers are ready. Complete initials_label(text) to clean the text with normalize and then wrap that result using bracket. Include the brackets even when cleaning leaves an empty string.