fork download
  1. # your code goes here
  2. lines=["-> 1234567 :\ ","-> 3212423 [Channel]"]
  3. data=[]
  4. for line in lines:
  5. if line.startswith('->'):
  6. start = '-> '
  7. end = ':\ '
  8. end1 = ' [Channel]'
  9. x=line.strip(start)
  10. x=x.strip(end)
  11. x=x.strip(end1)
  12. data.append(x)
  13. print(data)
Success #stdin #stdout 0.01s 27912KB
stdin
Standard input is empty
stdout
['1234567', '3212423']