diff options
author | RossTheRoss <msattr@gmail.com> | 2019-12-05 19:59:05 -0600 |
---|---|---|
committer | RossTheRoss <msattr@gmail.com> | 2019-12-05 19:59:05 -0600 |
commit | 338929621a365193c6c6c6dd901cfb13b55b75a1 (patch) | |
tree | f209cb564d0b635c9974dc765e05d5c2d0856c81 /ee2301 | |
parent | Lab (diff) | |
download | homework-338929621a365193c6c6c6dd901cfb13b55b75a1.tar homework-338929621a365193c6c6c6dd901cfb13b55b75a1.tar.gz homework-338929621a365193c6c6c6dd901cfb13b55b75a1.tar.bz2 homework-338929621a365193c6c6c6dd901cfb13b55b75a1.tar.lz homework-338929621a365193c6c6c6dd901cfb13b55b75a1.tar.xz homework-338929621a365193c6c6c6dd901cfb13b55b75a1.tar.zst homework-338929621a365193c6c6c6dd901cfb13b55b75a1.zip |
Prove Collatz Conjecture with bab code
Diffstat (limited to '')
-rw-r--r-- | ee2301/collatz.py | 7 |
1 files changed, 4 insertions, 3 deletions
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!") |