From 338929621a365193c6c6c6dd901cfb13b55b75a1 Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Thu, 5 Dec 2019 19:59:05 -0600 Subject: Prove Collatz Conjecture with bab code --- ee2301/collatz.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ee2301/collatz.py') diff --git a/ee2301/collatz.py b/ee2301/collatz.py index acbc12e..2707b4e 100644 --- a/ee2301/collatz.py +++ b/ee2301/collatz.py @@ -17,6 +17,7 @@ def collatzConjecture(n): #main for i in range (1,2): print("") - -collatzCount(100) - +try: + collatzCount(100) +except AssertionError: + print("The Collatz Conjecture is false!") -- cgit v1.2.3