Added utf-8 header to exercise 027

This commit is contained in:
Correl Roush 2011-04-06 23:38:37 -04:00
parent 65719721c9
commit 43ecfff029

View file

@ -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()
main()