x = [[] for i in range(3)]

Read more of this post