Python For Loop Finish
i'm self learning python through out online courses but i ran into a problem . for loop how do i tell python to do something after the for loops is finished ? for example : def m
Solution 1:
Just put it outside the body of the for loop:
for x in y:
... indented block does stuff with x on each loop ...
... dedented code (outside loop body) run once after loop is finished ...
Post a Comment for "Python For Loop Finish"