13 lines
224 B
Python
13 lines
224 B
Python
|
import string
|
||
|
|
||
|
def HEX(data):
|
||
|
return len( [x for x in data if x in string.hexdigits] ) == len(data)
|
||
|
|
||
|
def INT(data):
|
||
|
return str.isnumeric(data)
|
||
|
|
||
|
def DEC(data):
|
||
|
return str.isdecimal(data)
|
||
|
|
||
|
def STR(data):
|
||
|
return str.isalpha
|