In this tutorial, you will learn: What is Python Range? We've reached the header one more time and there are no more numbers generated by range. docs.python.org/3.3/library/stdtypes.html#iterator.__iter__, Podcast Episode 299: It’s hard to get hacked worse than this, (range(3),range(3)) ValueError: too many values to unpack (expected 2), Iterating bidimensional array/list with only one for (Python), Using multiple variables in a for loop in Python, How to use 2 index variable in a single for loop in python, Python print item in list gives lots of results, Key that maps to List in Python Dictionary. The first 4 exercises are free. Now let’s talk about loops in Python. In Python, there is not C like syntax for(i=0; i it's hard to beat 2 nested loops for simplicity." Powered by Octopress. How the component "alarm boost three pin inductor" makes a piezo buzzer louder? Printing each letter of a string in Python. In the body of the for loop, we want to compare the character at position s at index i with the one that comes after it, to see whether they are equal.