fork download
  1. import re
  2. frase = "O rato roeu a roupa\n Do rei de Roma"
  3. nova_frase = re.sub(r"\s", "", frase)
  4. print(nova_frase) # 'OratoroeuaroupaDoreideRoma'
Success #stdin #stdout 0.02s 9444KB
stdin
Standard input is empty
stdout
OratoroeuaroupaDoreideRoma