Beginner Python Concepts


Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

Loop Examples

It's helpful to see a few of the ways we would want to use these concepts.

So, this bit of code here:

This is written out, verbatum, what is going on in loop logic

Can be simplified with using loops, like so:

Much more compact code

Another nifty thing you can accomplish with a bit of loop logic and Python keyword shortcuts:

This is some basic pattern matching
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content