>>> t = 3 >>> d = 1 >>> dp = [[0] * (t+1)] * (d+1) >>> dp [[0, 0, 0, 0], [0, 0, 0, 0]] >>> dp[0][0] = 1 >>> dp