Collatz_Conjecture (Python) Help

As a relative newbie to python I’ve been at this for hours and tried 10+ different versions of code in the editor and I keep getting different errors. Couldn’t find another thread on it - here’s (two of) the code blocks

Here’s another one that I tested in a different compiler and it worked but I don’t think this is what the instructions were going for:

def steps(number):
while True:

    if number % 2 == 0:
        number = number//2
    elif number % 2 != 0:
        odd = (number*3)+1
        number = odd
    if number == 1:

starting_no = 12

The first version returns before it can loop. The second version doesn’t have a return.