Convert "t3i5k2vvhg3" to "tikvvhg3523"

from pickletools import int4


old_string="t3i5k2vvhg3"

# newstrig=3523tikvvhg

new_string=""
print(type(old_string[1]))

for i in old_string:
if not i.isdigit():
new_string+=i


for i in old_string:
if i.isdigit():
new_string+=i
print(new_string)

Comments

Popular posts from this blog

Guess game!

Path for chromedriver