Python Random Tips #9

This is not a Python Starter Tutorial but advanced Python Tips in a Random Order. Do you know the use of ‘else’ in loop (for and while) in Python? The ‘else’ part of statements will get executed only if the for loop completes and reaches it’s end without any ‘break’. #1 Let’s take an example:Continue reading “Python Random Tips #9”

Design a site like this with WordPress.com
Get started