Here is the video that explains how to use this two kinds of loops

CC BY 4.0 Use of for and while by dianagdv is licensed under a Creative Commons Attribution 4.0 International License.