[Solved] how to generate a list of 3-digit numbers the sum of their digits equal 17?


One solution with list comprehension

[(a,b,c) for a in range(10) for b in range(10) for c in range(10) if a+b+c ==17]

Then just convert this to strings or whatever you want.

1

solved how to generate a list of 3-digit numbers the sum of their digits equal 17?