diff --git a/e027.py b/e027.py index 6f1cd7f..4d4ae74 100644 --- a/e027.py +++ b/e027.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """Find the value of d < 1000 for which 1/d contains the longest recurring cycle.A unit fraction contains 1 in the numerator. The decimal representation of the unit fractions with denominators 2 to 10 are given: @@ -69,4 +70,4 @@ def main(): fraction = Decimal(1) / Decimal(i) print '1/{0} = {1} ({2})'.format(i, fraction, cycle), fraction.is_subnormal() if __name__ == '__main__': - main() \ No newline at end of file + main()