This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def _check_cedula(self, identificador): | |
if len(identificador) == 13 and not identificador[10:13] == '001': | |
return False | |
else: | |
if len(identificador) < 10: | |
return False | |
coef = [2,1,2,1,2,1,2,1,2] | |
cedula = identificador[:9] | |
suma = 0 | |
for c in cedula: |