sorry for the horrible title, I have no idea how I'd describe my problem.
I'm trying to generate a code that contains 15 characters. 7 of these are already given and will be called the "base". The other 8 have to be random from 0 to 9.
This is my code
numList = "1", "2", "3", "4", "5", "6", "7", "8", "9", "0"
whatSerial = input("Serial to generate?").upper()
def redmi4A(numList):
return "8655920" + numList + numList + numList + numList + numList + numList + numList + numList + " -> Redmi 4A"
if whatSerial == "4A":
for i in numList:
print(redmi4A(i))
however the output looks like this:
865592011111111 -> Redmi 4A
865592022222222 -> Redmi 4A
865592033333333 -> Redmi 4A
865592044444444 -> Redmi 4A
865592055555555 -> Redmi 4A
865592066666666 -> Redmi 4A
865592077777777 -> Redmi 4A
865592088888888 -> Redmi 4A
865592099999999 -> Redmi 4A
865592000000000 -> Redmi 4A
as you can see it generates the base + 11111, 2222, 3333 etc. I want the numbers after the base to output all possible solutions, so the numbers after the base would be in a random order.