My code currently allows the user to input 4 numbers, i want to allow 6, how do i do this, ive tried editing the < 4 to a 6 but i legit just cant get my head around it, i also want the user to be able to only input 4 numbers if they wish, but i need the program to ask for 6

```
    import itertools
    nums = []

    while len(nums) < 4:
try:
    num = int(input("Enter a number:"))
    if num not in range(10):
        raise ValueError
    else:
        nums.append(num)
except ValueError:
    print("Only integers 0-9 allowed!")

for x in itertools.permutations(nums):
print(''.join(str(n) for n in x)) `

```