• How can I improve it?

Question related to mission The Most Wanted Letter

 

Hello!

I've just solved this task, but I think I can do it much more better.

Anyone know how can I avoid using ‘temp’ variables in this code:

http://www.checkio.org/mission/most-wanted-letter/publications/Paaau3/python-27/needs-improvements/share/c0e66fa549a292af2d097a2ee01a0e0b/

Thank you very much!