How to write a program for permutations in python without itertools????
There a 2 ways to do it. Simple way is to use nested for loops. With 3 nested loops you can create samples that contains 3 digits. if you have to do it a more flexible way (e.g. 6 digits or 10 digits), you should use recursion.