Skip to content

Instantly share code, notes, and snippets.

@minshallj
Last active October 12, 2015 18:38
Show Gist options
  • Save minshallj/4069980 to your computer and use it in GitHub Desktop.
Save minshallj/4069980 to your computer and use it in GitHub Desktop.
to pi and not so much beyond
#python program
class guy:
def __init__(self, param):
self.name = param
print("My name is", self.name)
def my_guy_func(self, the_range):
total = 0
count = 1
for i in range(1, the_range+1, 2):
total += 1/ i ** count
count += 1
return total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment