Python Forum
Python Code Help Please
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Code Help Please
#2
You've posted the details of the assignment.

You've posted an image of the code.

You've posted the code itself as just text but not inside python tags, so it is not formatted correctly.

You have not said what your problem is, what help you need, or what error you are getting.

Probably best to define isPrime() before you try to use it.

You have a while loop using counter, but do not increment counter. You have incremented count though.
What's wrong with a for loop anyway?

You never return a value from isPrime().

You only increment the number you are checking IF the previous number was a prime.
I am trying to help you, really, even if it doesn't always seem that way
Reply


Messages In This Thread
Python Code Help Please - by Orped - Dec-04-2017, 09:18 PM
RE: Python Code Help Please - by gruntfutuk - Dec-06-2017, 09:56 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020