4 to the third power
4^3 = 64 combinations
to get all combinations run something like
digits = [0, 1, 2, 3]
for i in digits:
for j in digits:
for k in digits:
print("{} {} {}".format(i, j, k))
solved How many combinatioons are possible?