0
for t in range(5):
    for x in range(13):
        x += 4 #??
        print(str(x)+", "+str(a)+", "+ str(network(x, a))) #ignore this part I just focus on the x
        x += 1
    a += 100

My code gives me the right output I want which is making x value start from 4 and increasing it by one every time till it reaches 16 but I wonder about why it works I thought it would be a fail and would go like 4,9,14,.. at first but it actually go to 4,5,6,... I just recently learned Python so I want to know how it works sorry.

0 Answers0