Magic 8-Ball exercise output isn't right

My 8-Ball Code

All of the outputs have the number as the first character in the message. Whether it be 0 or 10, or any in between, the result is the same.

0It is certain.
1It is decidedly so.

and so on…

What’s happening here? My code looks exactly the same as the examples in the exercise, except that some of the elements in the code aren’t the same color. They never came out as the same color for me. Is this potentially the issue? Is there something deeper I’m missing?

@designrockstar42768,

Check out line 12 of your code.

2 Likes

Thank you! This was helpful.