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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -