my teacher asked me to write a program which will read an account number from a keyboard and then display it in the format as below:
input: 12103400001212905611117806 output: 12 1034 0000 1212 9056 1111 7806
I tried to do it, but I am new to Python and I don't know how to split this input after "12" and then every other four. Can someone give me some advice how to do it? I've started with for loop which look like this:
acc_number = input("Enter your account number: ")
for i in acc_number:
print(i, end = "")
I would be really grateful for help!