fork(3) download
  1. nomes = [" Paulo Ricardo ", " Fabio Junior ", " Roberto Carlos "]
  2. a = [nome.strip().split(' ')[0] for nome in nomes]
  3. print(a)
  4.  
Success #stdin #stdout 0.03s 9444KB
stdin
Standard input is empty
stdout
['Paulo', 'Fabio', 'Roberto']