aboutsummaryrefslogtreecommitdiffstats
path: root/ee2301
diff options
context:
space:
mode:
Diffstat (limited to 'ee2301')
-rw-r--r--ee2301/collatz.py10
1 files changed, 4 insertions, 6 deletions
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!")