[Problem Set 3 - Part B] When I run perm.py an error occurs: "Inconsistent identetion detected!" But I can't find where the problem is. Besides, the code was given. Did someone have the same problem?

At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get our expert's

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this and thousands of other questions.

A community for students.

[Problem Set 3 - Part B] When I run perm.py an error occurs: "Inconsistent identetion detected!" But I can't find where the problem is. Besides, the code was given. Did someone have the same problem?

MIT 6.189 A Gentle Introduction to Programming Using Python (OCW)
See more answers at brainly.com
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this and thousands of other questions

it means that the spacing before a statement is wrong - not the same as that above it: for x in range(11): ....f = x **2 .....g = f//2 g has an extra space before it - the god python is not pleased
It can also be caused by switching between Idle and a good text editor. I gave up using Idle because it was changing my tabs to spaces in the file, and the interpreter realizes that 8 spaces is different from 2 tabs.
In IDLE, use the Ctrl-[ or the menu to "Dedent" everything. Then use the Ctrl-] to Indent everything as it should be. That usually works to solve these problems for me.

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

Not the answer you are looking for?

Search for more explanations.

Ask your own question