Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

Insight

  • 3 years ago

in lecture ten when I try to run the program I get this error: while i < len(left) and j < len(right): if left[i] <= right[j]: R in right is highlighted: error is "expected an indented block:" Python 2.7.3

  • This Question is Closed
  1. rsmith6559
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Actually, without the next line of code, this is fairly impossible to troubleshoot. The message, to me, suggests that the next line of code should be indented relative to the if statement.

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

    I fixed the problem. I deleted the section an and pasted a new copy from the PDF of the file. No more indentation expected error.

  3. 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