Skip to content

Commit

Permalink
Renamed function (not using tuples anymore)
Browse files Browse the repository at this point in the history
  • Loading branch information
the-zebulan committed Nov 23, 2016
1 parent a3dbfab commit 4cb382a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions katas/beta/compare_section_numbers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
def to_tuple(s):
def to_nums(s):
result = [int(a) for a in s.split('.')]
while True:
try:
Expand All @@ -11,6 +11,6 @@ def to_tuple(s):


def compare(s1, s2):
a = to_tuple(s1)
b = to_tuple(s2)
a = to_nums(s1)
b = to_nums(s2)
return (a > b) - (a < b)

0 comments on commit 4cb382a

Please sign in to comment.