your collatz function is not returning anything so you should change it to something like this:
def collatz(number): if number % 2 == 0: return number//2 else: return 3*number + 1and then print the result inside your while loop.