Tell us what’s happening:
The assignment is:
Create a variable called card_translation
and assign it a translation table to replace all -
and `` characters with an empty string.
It’s pretty straightforward. I don’t know what I’m doing wrong. The variable is there, the function is there also…
Your code so far
# User Editable Region
card_number = '4111-1111-4555-1142'
card_translation = str.maketrans({'-': '', ' ': ''})
# User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Challenge Information:
Learn How to Work with Numbers and Strings by Implementing the Luhn Algorithm - Step 3