n = 0 for a1 in "xyz": for a2 in "abcd": for a3 in "abcd": for a4 in "abcd": n += 1 print(n)