14 lines
395 B
Python
14 lines
395 B
Python
class validation_the_enter_data:
|
|
def __init__(self) -> None:
|
|
pass
|
|
def validation_string(self, content, Comparison):
|
|
if content == Comparison:
|
|
return True
|
|
else:
|
|
return False
|
|
|
|
def validation_type(self, enter, Type: type):
|
|
if not isinstance(enter, Type):
|
|
return False
|
|
else:
|
|
return True |