Files
Bolt/core/ranger.py
Somdev Sangwan 7b14cac963 alpha release
2018-12-30 03:07:15 +05:30

10 lines
256 B
Python

def ranger(tokens):
digits = set()
alphabets = set()
for token in tokens:
for char in token:
if char in '0123456789':
digits.add(char)
elif char in 'abcdefghijklmnopqrstuvwxyz':
alphabets.add(char)
return [list(digits), list(alphabets)]