You are viewing a single comment's thread. Return to all comments →
With the help of regEx :
import sys, re, numpy entry = sys.stdin.read().splitlines() for line in entry: print(numpy.array([int(i) for i in re.findall(r"\d", line)]).reshape(3, 3))
Seems like cookies are disabled on this browser, please enable them to open this website
Shape and Reshape
You are viewing a single comment's thread. Return to all comments →
With the help of regEx :