Nested Loops
Python programming language allows using one loop inside another loop.
The following section shows a few examples to illustrate the concept. Basically will add one loop inside another.
For example, we would like (x,y) coordinates like (1,0) ,(0,1), (0,0)
Now let's put t2 coordinates together (x,y)
Now we will try to print (5,2,5,2,2) for x times in coordinate
Nested Loops
Reviewed by ohhhvictor
on
May 06, 2019
Rating:
No comments: