fork download
  1. texts = ['#1 - New York', '#4 - London']
  2. for myString in texts:
  3. print( myString, '=>', myString.split(' - ', 1)[-1] )
Success #stdin #stdout 0.02s 9124KB
stdin
Standard input is empty
stdout
#1 - New York => New York
#4 - London => London