Can anyone help me convert the last for loop into python3? I converted the rest by myself, but I am feeling lost about the construct in the last loop. I know that maps can m