Skip to content

Instantly share code, notes, and snippets.

def digito_rif(ci):
'''
toma un nro de cedula o rif y verifica el digito validador
'''
base = {'V': 1 * 4, 'E': 2 * 4, 'J': 3 * 4}
oper = [0, 3, 2, 7, 6, 5, 4, 3, 2]
for i in range(len(ci[:9])):
if i == 0:
val = base.get(ci[0], 0)
else: