Skip to content

Commit

Permalink
more cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryukh committed Oct 18, 2011
1 parent 9c8bdc0 commit 8b5e312
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions solutions/p22.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
What is the total of all the name scores in the file?"""

def solution():
"""
Bryukh's Solution
"""
try:
fname = open("eulerfiles/names22.txt", "r")
except IOError:
Expand Down
1 change: 1 addition & 0 deletions solutions/p54.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ def is_two_pair(self):
count_pair = 0
values = self.values()
bpair = 0
lpair = 0
for check in values:
if values.count(check) == 2:
count_pair += 1
Expand Down
1 change: 1 addition & 0 deletions solutions/p57.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def solution(value=CONST):
>>> solution()
"""
temp = Fraction(1, 1)
count = 0
for x in xrange(value):
denominator = 2
Expand Down

0 comments on commit 8b5e312

Please sign in to comment.