fork download
  1. # 입력
  2. x = [
  3. {'a':1, 'b':2, 'c':3, 'd':4},
  4. {'a':4, 'b':5, 'c':6, 'd':7},
  5. {'a':2, 'b':3, 'c':4, 'd':5},
  6. ]
  7.  
  8. print(', '.join(x[0].keys()))
  9. print('\n'.join(', '.join(str(z) for z in y.values()) for y in x))
Success #stdin #stdout 0.02s 9284KB
stdin
Standard input is empty
stdout
a, b, c, d
1, 2, 3, 4
4, 5, 6, 7
2, 3, 4, 5