Hey, I finished doing the first written exercises (http://bit.ly/SouFWO) and have correctly predicted the output for the final question (Ex 1.15 Buggy Loop), but I have no idea what this code might be trying to do, so have no idea what changes might be made. Any thoughts?
MIT 6.189 A Gentle Introduction to Programming Using Python (OCW)
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.
Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.
Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
n never changes, I suppose the idea is that i reaches some value and then something is done with n (and with i, maybe) but there are other possibilities...
I wonder if they will put some timetable for the MOOC, looking at the materials (do some stuff on Monday, some on Tuesday it says) and then materials from different sources.
Without some sort of guidance, things are going to get confused pretty quickly, I think.
I had the same question. Since the variable n isn't used in the code, I thought that it probably should be. But where? The if statement is clearly checking to see if the variable is even or not. But why? I have no idea.
Not the answer you are looking for? Search for more explanations.
Estudier: The Mechanical MOOC will send weekly e-mails with pointers to specific materials to review or exercises to complete during the week. Participants will post questions they have to this study group.
Yeah, I still have no idea, but I suppose "n" is a clue. Has to be there for some reason.