• + 0 comments
    from itertools import product
    def one(n,m):
      for tup in product('1',repeat=n):
        s=''.join(tup)
        i=int(s)
        if i%m==0:
          print(i-int(i/m)*m)
    
          
    print(one(3,3))