Python Forum
coding help lists, loops, and if statement
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
coding help lists, loops, and if statement
#4
Just to take ambiguity out of terminology: divisor.

To work out solution there are some hints:

- every number divides with 1 and itself --> no need to check those
- there can't be bigger divisor than half of number --> look for divisors in range up to num / 2
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Messages In This Thread
RE: coding help lists, loops, and if statement - by perfringo - Jul-17-2019, 08:38 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  sort lists of lists with multiple criteria: similar values need to be treated equal stillsen 2 3,365 Mar-20-2019, 08:01 PM
Last Post: stillsen
  Problems with For Loops and Lists Sagramor72 2 2,229 Mar-04-2019, 01:26 PM
Last Post: Sagramor72

Forum Jump:

User Panel Messages

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