Skip to content

Credit Card Validator: Fix spellings #5710

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 31, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions strings/credit_card_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def validate_credit_card_number(credit_card_number: str) -> bool:
36111111111111 is an invalid credit card number because of its first two digits.
False
>>> validate_credit_card_number('41111111111111')
41111111111111 is an invalid credit card number because it fails the Lhun check.
41111111111111 is an invalid credit card number because it fails the Luhn check.
False
"""
error_message = f"{credit_card_number} is an invalid credit card number because"
Expand All @@ -88,7 +88,7 @@ def validate_credit_card_number(credit_card_number: str) -> bool:
return False

if not luhn_validation(credit_card_number):
print(f"{error_message} it fails the Lhun check.")
print(f"{error_message} it fails the Luhn check.")
return False

print(f"{credit_card_number} is a valid credit card number.")
Expand Down