0
Is nested loop can be executed in python
Nested query
2 Answers
+ 5
Of course:
for i in range (10):
for j in range (10):
print('*', end='')
print()
+ 4
Yes nested loop executed in python
Example
adj = ["red",Ā "big",Ā "tasty"]
fruits = ["apple",Ā "banana",Ā "cherry"]
forĀ xĀ inĀ adj:
Ā Ā forĀ yĀ inĀ fruits:
Ā Ā Ā Ā print(x, y)