File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -157,11 +157,11 @@ The :keyword:`for` statement is used to iterate over the elements of a sequence
157157   for_stmt: "for" `target_list ` "in" `starred_expression_list ` ":" `suite `
158158           : ["else" ":" `suite `]
159159
160- The :token: `~python-grammar:starred_expression_list ` expression is evaluated  
161- once; it should yield an :term: `iterable ` object. An :term: `iterator ` is  
162- created for that iterable. The first item provided by the iterator is then  
163- assigned to the target list using the standard rules for assignments  
164- (see :ref: `assignment `), and the suite is executed. This repeats for each  
160+ The :token: `~python-grammar:starred_expression_list ` expression is evaluated
161+ once; it should yield an :term: `iterable ` object. An :term: `iterator ` is
162+ created for that iterable. The first item provided by the iterator is then
163+ assigned to the target list using the standard rules for assignments
164+ (see :ref: `assignment `), and the suite is executed. This repeats for each
165165item provided by the iterator. When the iterator is exhausted,
166166the suite in the :keyword: `!else ` clause,
167167if present, is executed, and the loop terminates.
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments