0

Make a Code that takes a list and an number as input, and now generates all possible combinations with the length of the number. For example, with the list {0,1} and the number 2 :
00
01
10
11
Your program hasnt to expect characters twice or more often in the list, such as {0,0,0,0,0,1,1,5,5}...