document for loop and comprehension scope behavior