Python magic 8 ball

Most likely, the second to last line of your code is executed every time you run it. The only question would be regarding indentation, but given your output, I’d say that is what is happening. For future posts please see How do I format code in my posts? Preserving your code’s original format is extremely helpful especially in Python where indentation determines scope.

1 Like