Skip to content

Latest commit

 

History

History
8 lines (8 loc) · 449 Bytes

File metadata and controls

8 lines (8 loc) · 449 Bytes

National-Identity-number-checker

National Identity checking - Code melli #The Iranian identity card is the primary identity document in Iran, and in some cases, we need to validate digits to get access or issue the token. This a pyton

Trace:

Smaple: 0013654055

(010)+ (09) + (18) + (37) + (66) + (55) + (44) + (03) + (52) + (51) = 8 + 21 + 36 + 25 + 16 + 0 + 10 + 5 = 121

121 / 11 = 11 and 0 So 0 + 11 = 11 and code is correct.