Quantcast

A community for students. Sign up today!

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

thiago.assumpcao

  • 2 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
    • 2 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
    • 2 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
    • 2 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

Ask a Question
Find more explanations on OpenStudy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.