Python Forum
Trying to integrate gcd function
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to integrate gcd function
#4
(Oct-28-2020, 01:58 PM)hhydration Wrote: I am having trouble integrating the gcd function into my first function so that the kasiski function returns the GCD of the list rather than the list. Any pointers?
Do you have an idea of how I would integrate my gcd function?

If function kasinksi returns list of integers then it's should be simple just wrap the resulting list with gcd:

import math

result = math.gcd(kasinski(text))
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
Trying to integrate gcd function - by hhydration - Oct-28-2020, 12:39 PM
RE: Trying to integrate gcd function - by perfringo - Oct-28-2020, 01:34 PM
RE: Trying to integrate gcd function - by perfringo - Oct-28-2020, 02:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Differentiate and Integrate A Given Function wildmommy666 2 1,633 May-11-2020, 04:30 PM
Last Post: ndc85430

Forum Jump:

User Panel Messages

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