Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

thiago.assumpcao Group Title

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

  • 2 years ago
  • 2 years ago

  • This Question is Open
  1. snark Group Title
    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 years ago
  2. rsmith6559 Group Title
    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.

    • 2 years ago
  3. exchaoordo Group Title
    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.

    • 2 years ago
    • Attachments:

See more questions >>>

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.