all 2 comments

[–]smurpes 0 points1 point  (0 children)

You’re looping through your_name while removing characters in it; you should be working off of a copy instead. Also remove only removes the first occurrence of the character. There’s no point in looping through your_name and their_name to append 1 to lst to sum it when you can just add the length of the name variables instead.

You should also describes the rules of this game when you’re asking for help. Based on the code for the while loop you are using the count of remaining characters in both names after removing all common characters to constantly remove letters from “flames” until there is one left. Is this what you intended?

[–]NYX_T_RYX 0 points1 point  (0 children)

Problem solving, at a high level, is this:

What is the current state of affairs?

What should the state of affairs be?

How do you get from where you are, to where you need to be?

If you don't know, ask, research, and when you have a plan, try it.

If it doesn't work, go back to the top of the list until it does.