File size: 160 Bytes
3818a89
 
 
 
 
1
2
3
4
5
6
def normalize_text(text: str) -> str:
    text = text.lower()
    tmp = text.split(" ")
    tmp = [word for word in tmp if word != ""]
    return " ".join(tmp)