I have below code, would like to know what is the best simple and elegant way to express multiple for loop?
for x in range (10):
for y in range (10):
for z in range(10):
if x+y+z=10:
print (x,y,z)
Thanks in advance!