Answer to Question #231267 in Python for bhuvana

Question #231267

Given a string, write a program to move all the numbers in it to its end.


1
Expert's answer
2021-09-06T00:17:17-0400
string =input()
numbers =""
letters=""
for l in string:
    if (l.isdigit()):
        numbers+=l
    else:
        letters+= l
print(letters+numbers)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS