Talk:Luhn algorithm: Difference between revisions

Content deleted Content added
SineBot (talk | contribs)
m Signing comment by Sollyucko - "Confusion about check digit: new section"
Examples were removed and note added to relevant discussion.
Line 189:
 
: Agree completely. A simple pseudocode algorithm should be crafted and all other examples removed. – [[User:Acdx|Acdx]] <small>(<i>[[User_talk:Acdx|talk]]</i>)</small> 13:56, 28 July 2011 (UTC)
 
Everyone seems to agree, so I've done this. [[Special:Contributions/98.182.22.49|98.182.22.49]] ([[User talk:98.182.22.49|talk]]) 23:23, 1 June 2019 (UTC)
 
== Python Example ==
 
If anyone is interested, I've cleaned up the python code a bit to make it easier to understand for newer programmers. I used a less "clever" implementation, and tried to name variables more clearly. I also consolidated the checksum code, so it is implemented once, and used in two ways to check validity, and to find the last digit.