From 1abef0fb71c7d52dd17fb275c896c9072e0be3aa Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Thu, 5 Dec 2019 20:10:27 -0600 Subject: Do more bab --- ee2301/collatz.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'ee2301') diff --git a/ee2301/collatz.py b/ee2301/collatz.py index 2707b4e..14873be 100644 --- a/ee2301/collatz.py +++ b/ee2301/collatz.py @@ -1,10 +1,10 @@ def collatzCount(number): for n in range (1,number+1): collatzConjecture(n) - print("\n") + #print("\n") def collatzConjecture(n): - print(n, end = ' ') + #print(n, end = ' ') if n is 1: return 1 else: @@ -14,10 +14,8 @@ def collatzConjecture(n): return collatzConjecture(int(n/2)) raise AssertionError -#main -for i in range (1,2): - print("") + try: - collatzCount(100) + collatzCount(10000) except AssertionError: print("The Collatz Conjecture is false!") -- cgit v1.2.3