I can see i wrote everything fine here! Please Help

def main():
    card_number = '4111-1111-4555-1142'
    card_translation = ''
    card_translation = card_number.maketrans({'-': '', ' ': ''})

Welcome to the forum!

Please link to the challenge and show us your actual code. Python relies on the correct formatting and that’s where students often make mistakes.

You can find instructions in the help section of the task.

If you could possibly send your actual code and the error if it returned any, it’ll make it easier to spot the problem

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

I don’t know which step you’re stuck on but this definitely can’t be right, as you wouldn’t assign a value and then immediately reassign it on the next line.


You should use print command to print out the card_translation.
The main function should be call also like below code:


It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.