Last active
October 12, 2015 18:38
-
-
Save minshallj/4069980 to your computer and use it in GitHub Desktop.
to pi and not so much beyond
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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