create 2d array python list comprehension

43

2d list comprehension python -

[[float(c) for c in row] for row in data]

2d list comprehension python -

[int(x) for line in data for x in line.split()]

Comments

Submit
0 Comments