SIGN IN SIGN UP
TheAlgorithms / Python UNCLAIMED

All Algorithms implemented in Python

0 0 1 Python

Fix validate_initial_digits of credit_card_validator.py (#5600)

* Fix validate_initial_digits of credit_card_validator.py

@Bhargavishnu I think that I broke the logic of validate_initial_digits which should require that credit_card_number[0] is 3 before checking that credit_card_number[1] is 4, 5, or 7.  Please verify the new changes and the new test cases to make sure that this is correct.  Thanks!

* updating DIRECTORY.md

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
C
Christian Clauss committed
366a0f18397427b61979ea27f7497718962834d8
Parent: 700398e
Committed by GitHub <[email protected]> on 10/26/2021, 12:32:34 PM