IndentationError: unindent does not match any outer indentation level python -


hello here python code:

def is_palindrome(nombre):     if str(nombre) == str(nombre)[::-1]:         return true     return false x = 0 in range(100, 1000):     j in range(i, 1000):         z in range(j, 1000):      produit = i*j*z          if is_palindrome(produit):             if produit > x:                 x = produit print(x) 

when tried compile code have got error: produit = ijz ^ indentationerror: unindent not match outer indentation level has idea please??

the code in question mess. here's how indentation fixed.

def is_palindrome(nombre):     if str(nombre) == str(nombre)[::-1]:         return true     return false  x = 0 in range(100, 1000):     j in range(i, 1000):         z in range(j, 1000):                 produit = i*j*z              if is_palindrome(produit):                 if produit > x:                     x = produit # may want move inner `if` statement print(x) 

Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -