Got Homework?
Connect with other students for help. It's a free community.
Here's the question you clicked on:
 0 viewing
sebastianaro
Group Title
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?
 2 years ago
 2 years ago
sebastianaro Group Title
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?
 2 years ago
 2 years ago

This Question is Open

TuringTest Group TitleBest ResponseYou've already chosen the best response.1
the second lecture from edX, or OCW ?
 2 years ago

sebastianaro Group TitleBest ResponseYou've already chosen the best response.0
I made a mistake in my question is actually the 3rd lecture of OCW.
 2 years ago

TuringTest Group TitleBest ResponseYou've already chosen the best response.1
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?
 2 years ago

sebastianaro Group TitleBest ResponseYou've already chosen the best response.0
Oh yes, is that one, I didn't know you had to actually write print divisors and all the other things.
 2 years ago

TuringTest Group TitleBest ResponseYou've already chosen the best response.1
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
 2 years ago

sebastianaro Group TitleBest ResponseYou've already chosen the best response.0
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
 2 years ago

TuringTest Group TitleBest ResponseYou've already chosen the best response.1
No problem, welcome!
 2 years ago
See more questions >>>
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.