Fix spellings (#5710)

This commit is contained in:
@im_8055 2021-10-31 16:06:03 +05:30 committed by GitHub
parent 99983c91ca
commit a94c6214ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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. 36111111111111 is an invalid credit card number because of its first two digits.
False False
>>> validate_credit_card_number('41111111111111') >>> 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 False
""" """
error_message = f"{credit_card_number} is an invalid credit card number because" error_message = f"{credit_card_number} is an invalid credit card number because"
@ -88,7 +88,7 @@ def validate_credit_card_number(credit_card_number: str) -> bool:
return False return False
if not luhn_validation(credit_card_number): 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 return False
print(f"{credit_card_number} is a valid credit card number.") print(f"{credit_card_number} is a valid credit card number.")