Initial commit

This commit is contained in:
Kevin Keogh
2018-07-02 15:45:49 -04:00
parent 60b3954a3b
commit fd817f8811
28 changed files with 809 additions and 0 deletions

14
problem-26.py Normal file
View File

@@ -0,0 +1,14 @@
tests = [(x, 1/x) for x in range(2,11)]
def check_repeats(number):
number = str(number)
longest = ''
for i in range(1, len(number)+1):
sample = number[:i]
while number[:i] ==
if __name__ == '__main__':
for test in tests:
result = check_repeats(str(test[1])[2:])
print('Test %s = %s, %s\n'.format(test[0], test[1], result))