CBSE Class 12 Computer Science
Question 85 of 105
Python Revision Tour — Question 11
Back to all questions%
*
* *
* * *
%%
*
* *
* * *
%%%
*
* *
* * *
In this code, the for loop is nested inside the while loop. Outer while loop runs 3 times and prints % as per the elements in x in each iteration. For each iteration of while loop, the inner for loop executes 3 times printing * as per the elements in x.