From e6a7399134b3dc08f9e6e9c9c74e39ac449b8538 Mon Sep 17 00:00:00 2001 From: mjfernez Date: Mon, 3 Feb 2020 19:49:58 -0500 Subject: Fix dumb mistakes --- collatz.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'collatz.py') diff --git a/collatz.py b/collatz.py index 1052610..404a2ed 100644 --- a/collatz.py +++ b/collatz.py @@ -1,5 +1,4 @@ import PIL, math -import numpy as np #Problem 14 Longest Collatz sequence #Note, a little slow, takes about 15 seconds. @@ -21,5 +20,5 @@ for n in range(1,pow(10,6)): if(len(chain)>len(biggo)): biggo = chain chain = [] -print biggo -print "Has " + str(len(biggo)) +" numbers." +print(biggo) +print("Has " + str(len(biggo)) +" numbers.") -- cgit v1.2.3