# Python3 code to remove whitespace def remove(string): return string.replace(" ", "") # Driver Program string = ' g e e k ' print(remove(string))
.strip()