Python for loops

Python for loops are pretty straightforward. The biggest things to remember are that the loops always stop before they reach the end point you set, and that the numbers you set need to be in parenthesis.

Here are two basic examples. Notice you can print out both the contents of a variable, or, if you put characters or strings in quotes, your output won't change. You can also stop a for loop from printing each iteration on a separate line by adding in your parenthesis: