import sys str1 = "" str2 = "" for c in input("Enter the strings: "): if c>='0' and c<='9': str2 += c else: str1 += c rawstr = str1 + str2 print(rawstr)
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments