Mastery20

Use of loops with “for”

This loop allows you to repeat a code n number of times. 

Example:

Where the a in “for a in range(x)” is a random character, you can put a string if you want.

20 1014

CC BY 4.0 Mastery20 by Joel Erles is licensed under a Creative Commons Attribution 4.0 International License.

Comments are closed.