I'm currently trying to learn python. Suppose there was a a number n = 12345. How would one go about changing every digit starting from the first spot and iterating it between (1-9) and every other spot after (0-9). I'm sadly currently learning python so I apologize for all the syntax error that might follow. Here's my last few attempts/idea for skeleton of the code.
define the function
turn n into string
start with a for loop that for i in n range(0,9) for i[1]
else range(10)
Basically how does one fix a number while changing the others? Please don't give solution just hints I enjoy the thinking process.
For example if n =29 the program could check
19,39,49,59,69,79,89,99
and
21,22,23,24,25,26,27,28