fork(5) download
  1. text="hello|python|world"
  2. print(text.split("|"))
  3. aa=text.split("|")
  4. print(aa[0])
  5. print(aa[-1])
  6. print(aa[0]+" "+aa[-1])
Success #stdin #stdout 0.07s 14108KB
stdin
Standard input is empty
stdout
['hello', 'python', 'world']
hello
world
hello world