The program must accept a string S containing alphabets and digits as the input. The program must print all the alphabets in S. Then the program must print all the digits in S as the output.
Example Input/Output
Input:
Pass123Lock456
Output:
PassLock123456
Explanation:
All the alphabets in the string Pass123Lock456 are printed.
Then all the digits in the string Pass123Lock456 are printed.
Here are the various methods
Python:

c:

Leave a Reply