S
S
Sergey2017-09-13 13:27:05
JavaScript
Sergey, 2017-09-13 13:27:05

How to fix inconsistent use of tabs and spaces in indentation error?

I encountered an error while writing the parser

course = {'titel': titel, 'descript': descript, 'url': url}
                                                                              ^
TabError: inconsistent use of tabs and spaces in indentation

I don’t understand where the jamb with tabulation

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Laud, 2019-05-27
@dimastik1986

let array = Object.values(obj).map(({ name, item, type, summ }) => ([ name, item, type, sum ]));

(I wrote from the phone, I could print it)

L
longclaps, 2017-09-13
@hardtime88

What is there not to understand - I copied a piece from somewhere, and there are tabs in it. The 3rd python considers it a mistake to use both tabs and spaces in one file at the same time.

S
sim3x, 2017-09-13
@sim3x

Cant in the place where indicated^

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question