Given a string, write a program to move all the numbers in it to its end.
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?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment