Skip to content

Instantly share code, notes, and snippets.

View yahuarkuntur's full-sized avatar
🐈

Brian Debuire yahuarkuntur

🐈
View GitHub Profile
@yahuarkuntur
yahuarkuntur / gist:3980614
Created October 30, 2012 14:44 — forked from ovnicraft/gist:3975271
Validador cedula o ruc
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: