(number)
Collatzs the input number recursively until it reaches 1.
Collatzs the input number recursively until it reaches 1.
Collatzs the input number recursively until it reaches 1 .
def collatz(number):
    """Collatzs the input number recursively until it reaches 1."""
    if number == 1:
        print('Collatz Complete. Amazing isn\'t it!')
    elif number % 2 == 0:
        print(int(number / 2))
        collatz(number / 2)
    else:
        print(int(number * 3 + 1))
        collatz(number * 3 + 1)
def collatz ( number ) : if number == 1 : print ( 'Collatz Complete. Amazing isn\'t it!' ) elif number % 2 == 0 : print ( int ( number / 2 ) ) collatz ( number / 2 ) else : print ( int ( number * 3 + 1 ) ) collatz ( number * 3 + 1 )