Learn How to Work with Numbers and Strings by Implementing the Luhn Algorithm - Step 8

Tell us what’s happening:

Doesn’t work… have tried to place the main(ver(trans)) after all has been defined?

Your code so far

def verify_card_number(card_number):
    pass


# User Editable Region

def main():
    card_number = '4111-1111-4555-1142'
    card_translation = str.maketrans({'-': '', ' ': ''})
    translated_card_number = card_number.translate(card_translation)
main(verify_card_number(translated_card_number))
    print(translated_card_number)


# User Editable Region

main()

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Safari/605.1.15

Challenge Information:

Learn How to Work with Numbers and Strings by Implementing the Luhn Algorithm - Step 8

do not call main inside itself. Call only verify_card_number

Got it see the problem as it’s inside the body of the function - thanks!