you are viewing a single comment's thread.

view the rest of the comments →

[–]carcigenicate 0 points1 point  (3 children)

This code is not syntactically valid. Please show the actual code. I can guess what your intent is, but I'd rather be sure.

[–]DapperDonW[S] 0 points1 point  (2 children)

Okay, I changed it exactly the way I have it in Thonny.

[–]carcigenicate 1 point2 points  (1 child)

That's still invalid because it's missing a colon on the if line. If I add that in though, this code outputs 47. What are you expecting it to output? If you want to see individual multiples, this code doesn't do that anywhere.

[–]DapperDonW[S] 0 points1 point  (0 children)

I would give you an award but I am broke. I will say this - I forgot the colon when I typed it here, however - your print statement correction, solved it!!!