Open study

is now brainly

With Brainly you can:

  • Get homework help from millions of students and moderators
  • Learn how to solve problems with step-by-step explanations
  • Share your knowledge and earn points by helping other students
  • Learn anywhere, anytime with the Brainly app!

A community for students.

Hi, I'm using python 2.7.3. In the third lecture they hand out one exercise with the Dividors. Python is not showing me the result even with the (i,) correction they did. What's going on? Help?

MIT 6.00 Intro Computer Science (OCW)
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
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.

Join Brainly to access

this expert answer

SEE EXPERT ANSWER

To see the expert answer you'll need to create a free account at Brainly

the second lecture from edX, or OCW ?
I made a mistake in my question is actually the 3rd lecture of OCW.
x = 100 divisors = () for i in range(1, x): if x%i == 0: divisors = divisors + (i,) print divisors print divisors[0] + divisors[1] print divisors[2:4] this one?

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

Oh yes, is that one, I didn't know you had to actually write print divisors and all the other things.
you don't, just type x = 100 divisors = () for i in range(1, x): if x%i == 0: divisors = divisors + (i,) into a new window, and run with F5. then type the print statements into the shell and hit enter to run
Thanks so much, now it works. In the handout it did not have print Divisors and the video I couldn't see that there was a print in the code. Thanks so much. I thought there was something wrong with my python. Thanks again! :D
No problem, welcome!

Not the answer you are looking for?

Search for more explanations.

Ask your own question