fork download
  1. text = "Hello|Python|World"
  2. res=text.split("|")
  3. new_str=res[0]+""+res[2]
  4. print(new_str)
  5. text2=text.replace("Python", "AI")
  6. text2=text2.upper()
  7. print(text2)
Success #stdin #stdout 0.07s 14168KB
stdin
Standard input is empty
stdout
HelloWorld
HELLO|AI|WORLD