fork download
  1. text="hello|python|world"
  2. print(text)
  3. parts=text.split('|')
  4. print(parts)
  5. resultl=parts[0]+' '+parts[2]
  6. print(resultl)
  7. replaced=text.replace("python","Ai")
  8. print(replaced)
  9. print(replaced.upper())
Success #stdin #stdout 0.06s 14132KB
stdin
Standard input is empty
stdout
hello|python|world
['hello', 'python', 'world']
hello world
hello|Ai|world
HELLO|AI|WORLD