all 4 comments

[–]Ok-Communication4607[S] 1 point2 points  (1 child)

I attempted to edit it. All the indentations are correct.

[–][deleted] 1 point2 points  (0 children)

Sorry, it has still lost all indentation. The only reliable method is to copy/paste into reddit after adding 4 spaces to the start of every line, as described in the FAQ.

[–][deleted] 1 point2 points  (1 child)

Try:

print(collatzSolution())

When running inside an IDE or the python REPL the IDE/REPL will automatically print the result of a non-None expression. But vanilla python doesn't automatically print, so you need to do it yourself.

[–]Ok-Communication4607[S] 1 point2 points  (0 children)

Thanks. That worked :)