Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b722f8e

Browse files
Adding credits
1 parent e9ddf07 commit b722f8e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎Problem Solving Scripts/CPF_Checker.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/usr/bin/env python3
22

3-
"""
3+
""" Nicolas Mendes - Jan 18 2022
4+
5+
Based on https://www.alura.com.br/conteudo/python-validacao-dados#:~:text=Criando%20um%20novo%20Python%20file,contr%C3%A1rio%20o%20retorno%20ser%C3%A1%20False%20
6+
47
Algorithm for validating CPF
58
The CPF calculation is based on the final 2 digits.
69
To validate, take the first 9 digits of the CPF, generate the 2 digits and save in a new CPF.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /