DEV Community

Discussion on: Daily Challenge #183 - Automorphic Numbers

Collapse
 
j_saikiranreddy profile image
J.SaiKiranReddy

11 should be false?

Thread Thread
 
candidateplanet profile image
lusen / they / them πŸ³οΈβ€πŸŒˆπŸ₯‘

11 * 11 is 121, which ends in 1 hence return True.

Thread Thread
 
candidateplanet profile image
lusen / they / them πŸ³οΈβ€πŸŒˆπŸ₯‘

oops - i interpreted the problem incorrectly as only the one’s digits needing to match.