let's make a program using Nested for loop in python #shortvideo #viral #trending

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Wanna know what you can also do? You can actually count the amount of rows in your console and add a 'print("\n\n\n")' or however many newlines while also importing time.sleep() and adding that to the loops, assuming you have 5 rows of text on your console:

from time import sleep

def prints(i, j):
print(f"\n\n\nOuter Loop: {i}\nInner Loop: {j}")

for i in range(2):
sleep(0.25)
for j in range(5):
sleep(0.25)
prints(i, j)

aya-hlbk