L
L
Lol Likovic2020-06-30 07:16:44
Python
Lol Likovic, 2020-06-30 07:16:44

Writes "inconsistent use of tabs and spaces in indentation", what doesn't he like??

try:
        user_counter[message.author.id] += 1
except NameError:
        user_counter[message.author.id] = 1

writes an error in the category "
except NameError:
^
TabError: inconsistent use of tabs and spaces in indentation"
I don’t understand why he writes like that

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Kuts, 2020-06-30
@Lolik666

I don't understand why he writes like that

What is there to understand
Take and translate the phrase with a dictionary. They tell you in plain text that you have tabs mixed with spaces in your indents

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question