+ 1

IndentationError: unexpected indent

It keeps saying there is an unexpected indentation. Even after i delete it. What could be the issue? purity = float(input()) #your code goes here purity = 93.4; if purity < 91.7: print ("Not accepted") if purity > 91.7: print ("Accepted") if purity > 99.9: print ("Accepted")

16th Dec 2021, 6:56 AM
stendewa
stendewa - avatar
2 Antworten
+ 2
purity = float(input()) #your code goes here purity = 93.4; if purity < 91.7: print ("Not accepted") if purity > 91.7: print ("Accepted") if purity > 99.9: print ("Accepted") #Try this
16th Dec 2021, 7:45 AM
NEZ
NEZ - avatar
+ 1
You mostly indent the line after a line that ends with a colon (:).
16th Dec 2021, 8:33 AM
Paul
Paul - avatar