+ 1
Mac address splitting and joining ?
Mac="11:22:33:44:55:66" expected output is like "1122.3344.5566"
2 Respuestas
+ 3
inp='11:22:33:44:55:66'
inp=inp.split(':')
print(*[''.join(inp[x:x+2]) for x in range(0,(len(inp)//2+2),2)],sep='.')
0
thanks Louis