fork(3) download
  1. # change [NUM_COLUMN]
  2. NUM_COLUMN = 3
  3. # paste from Excel sheet
  4. data="""0 3 0
  5. 100 3 0
  6. 200 3 0
  7. 300 3 0
  8. 400 3 0
  9. 500 3 0
  10. """
  11.  
  12. for aline in data.split('\n'):
  13. elem = aline.split('\t')
  14. if len(elem) < NUM_COLUMN:
  15. break
  16. print("{%s,%s,%s}," % (elem[0], elem[1], elem[2]), end='')
  17.  
Success #stdin #stdout 0.02s 9300KB
stdin
Standard input is empty
stdout
{0,3,0},{100,3,0},{200,3,0},{300,3,0},{400,3,0},{500,3,0},