def collatz(start):
 start = int(start)
 begin = time.time()
 steps = []
 while (start != 1):
  steps.append(start)
  if (start > 1):
   if ((start % 2) == 0):
    start = (start / 2)
   else:
    start = ((start * 3) + 1)
 return (steps, (time.time() - begin))

def collatz ( start ) : start = int ( start ) begin = time . time ( ) steps = [ ] while ( start != 1 ) : steps . append ( start ) if ( start > 1 ) : if ( ( start % 2 ) == 0 ) : start = ( start / 2 ) else : start = ( ( start * 3 ) + 1 ) return ( steps , ( time . time ( ) - begin ) )
execute the collatz conjecture from the passed starting number .