Descriptive naming helps. In algorithms I put a summary of each step in a comment, like
# 1. Read user input
# 2. Perform bounds checking