Monday, July 23, 2012

What else is there in Python?

I bet you didn’t know that you can put an else clause after a for loop! What does it do? When the items you iterator over are exhausted, the else clause is executed.

When aren’t the items exhausted? When you use a break statement.

Visit this link

0 comments: