Hello and good day.
I have been having a hard time running my code in the browser; it has been showing me the error you see on the RHS of the image.
Link: collatz-conjecture
Code:
def steps(number):
current = number
sequence = [current]
while current != 1:
if current % 2 == 0:
current = current // 2
else:
current = current * 3 + 1
sequence.append(current)
return sequence
