How do you fix unindent indentation error

how do you fix this error:
image

Repl link:

	while not(len(word) == 5):
		write = open("words.txt", "w").write("brake\nbreak\napple\ngrape\nchair\ngrain\nhorse\nshark\ntrain\ntrail\ncrown\nqueen\nsouth\nnorth\nocean\nprint\nsword\ntable\nalien\njesus\ncouch\nbrand\nstore\ngreat\nsuper\nframe\nimage\nseven\nboard\nstink\nenter\nlevel\nshell\nspoon\nforks\npaper\nknife\nmouse\nriver\nhouse\nstart\npixel\nforce\nwatch\nlater")
    lines = len(open("words.txt").readlines())
    line = random.randint(0,lines) 
    mincol = line * 6
    maxcol = mincol + 5
    read = open("words.txt").read()
    word = open("words.txt").read()[mincol:maxcol]
    file = open("words.txt").close()
code snippet

yeah yesterday in setting i change my indent type from tabs to spaces

If you find some answer did solve your question you can click the little tick next to the comment so that people won’t come in and check the question that is already solved

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.