File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ def validate_credit_card_number(credit_card_number: str) -> bool:
71
71
36111111111111 is an invalid credit card number because of its first two digits.
72
72
False
73
73
>>> validate_credit_card_number('41111111111111')
74
- 41111111111111 is an invalid credit card number because it fails the Lhun check.
74
+ 41111111111111 is an invalid credit card number because it fails the Luhn check.
75
75
False
76
76
"""
77
77
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:
88
88
return False
89
89
90
90
if not luhn_validation (credit_card_number ):
91
- print (f"{ error_message } it fails the Lhun check." )
91
+ print (f"{ error_message } it fails the Luhn check." )
92
92
return False
93
93
94
94
print (f"{ credit_card_number } is a valid credit card number." )
You can’t perform that action at this time.
0 commit comments