python - 3 digit palindrome products -


i'm trying find largest palindrome product of 2 3 - digit number. code, below. have no idea why isn't working. please!? enter image description here according me should scan through possible combinations , provide me answer.. doesnt seem work. ideas ?

there may other problems code, it's hard tell when can't see how file on computer indented. also, if b = 99: should if b = 99:, python interpreter gives syntaxerror if. please post actual code that's on computer, indented inside code block.

your main problem you're not re-calculating product inside while loop. , test if it's palindrome you'll need convert product string inside loop. also, loop should test a remains valid, although that's not critical here, since when fix other stuff loop break before a becomes invalid.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -