Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- digits = ''
- letters = ''
- other = ''
- text = input()
- for ch in text:
- if ch.isalpha():
- letters += ch
- elif ch.isdigit():
- digits += ch
- else:
- other += ch
- print(f'{digits}\n{letters}\n{other}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement