A community for students.
Here's the question you clicked on:
 0 viewing
anonymous
 4 years ago
Hey everyone. I'm pretty new to programming, but have decided to give it a go. I'm having some trouble with PS2 Q3. I can't figure out why I'm on an infinite loop.
http://codepad.org/Dfk8br9X
anonymous
 4 years ago
Hey everyone. I'm pretty new to programming, but have decided to give it a go. I'm having some trouble with PS2 Q3. I can't figure out why I'm on an infinite loop. http://codepad.org/Dfk8br9X

This Question is Closed

anonymous
 4 years ago
Best ResponseYou've already chosen the best response.0Instead of: possible_count =+ 1 try, possible_count+=1

anonymous
 4 years ago
Best ResponseYou've already chosen the best response.0Also, noticed that you will get an incorrect result at the end. Your impossible statement is in the wrong place. It should be when found==False: if found == False: possible_count = 0 impossible = n < instead of where you have it: if found == True: possible_count =+ 1 impossible = n <

anonymous
 4 years ago
Best ResponseYou've already chosen the best response.0Thank you so much malpaso. I had been starting at that forever.
Ask your own question
Sign UpFind more explanations on OpenStudy
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.