Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

thiago.assumpcao

  • 3 years ago

[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?

  • This Question is Open
  1. snark
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 2

    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

  2. rsmith6559
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    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.

  3. exchaoordo
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    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.

  4. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy