mirror of
https://github.com/bcomsugi/dasaproject.git
synced 2026-01-10 16:32:39 +07:00
11 lines
214 B
Python
11 lines
214 B
Python
import string
|
|
|
|
def get_alpha_numeric(text:str):
|
|
result=""
|
|
for x in text:
|
|
if x.isdecimal() or x.isalpha():
|
|
result += x
|
|
return result
|
|
|
|
if __name__ == "__main__":
|
|
print(get_alpha_numeric('TH-201/88. aa, BH')) |