I got a dumb question about nest loop in Python.
I just want to figure out why that second statement will follow the first statement to loop 5 times? Below is my loop code, hope someone can explain it to me. Thanks in advance! :)
for steps1 in range(5):
print('@@@')
print('@@@')
for steps2 in range(4):
print('###')
print('###')
Copyright Notice:Content Author:「J.Zeng」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/45540085/python-dumb-ques-about-nest-loop-in-python