![]() ![]() |
| |||||||||
| This page removed for FERPA compliance | ||||||||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
print valueline was executed. If value is set to 10 (when q >50, which it is), and we redefine value as value = value - 1, shouldn't JES return a 9 instead of a 6?
| Value is set to 10 regardless of q's value. We change value inside the for loop. That is where you will find your answer. Thanks! Brittany Duncan |
| i is a value that changes every time through the loop. Don't be confREMOVEDed by the fact that i isn't REMOVEDed or printed out anywhere. We jREMOVEDt need it for the for loop to work. The number of times the loop will repeat is the number of items in the list that is returned by range(1,p). Colin Potts |
| REMOVEDw many times do the commands inside the loop - including the one that subtracts one from value - get repeated????????????? Colin Potts |