indentation - IndentationError in for loop python -


i don't quite understand problem of code below

for stripe in [sku.value sku in model_sheet.col(13) if str(sku.value)]:      try:            stripe = int(stripe)        except valueerror:            stripe = unicode(stripe)        stars in [sku.value sku in model_sheet.col(19) if str(sku.value)]:             yield hatinstance(hat_model, shade, cockade, rosette, color_ribbon, buttons, cover, stripe, stars, silk_band = silk_band) 

it says there @ line 9 column 5 indentationerror: unindent not match outer indentation level. didn't correctly followed proper pep8 indentions?

better remove indentations , use tab of indentations, resolve issue. python segregates code blocks based on indentations


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -