how to strip something rcom a string puthon code example Example: strip in python txt = " banana " x = txt.strip() #x will be "banana"