1

I have a list of words that went into a tokenizier and came out like so:

[[0], [97], [153]]

I want to go from that list into:

[0, 97, 153]

How would I do that?

Santa
  • 158
  • 1
  • 9

1 Answers1

1
l = [[0], [97], [153]]
[x[0] for x in l]
theEpsilon
  • 1,800
  • 17
  • 30
  • While this code may answer the question, providing additional context regarding why and/or how this code answers the question improves its long-term value. – β.εηοιτ.βε Jun 12 '20 at 19:34