Is nested loop can be executed in python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is nested loop can be executed in python

Nested query

10th Jun 2020, 12:31 PM
Shardul Gajbhiye
2 Answers
+ 5
Of course: for i in range (10): for j in range (10): print('*', end='') print()
10th Jun 2020, 12:38 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 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)
10th Jun 2020, 12:41 PM
Runtime Terror
Runtime Terror - avatar