Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 14 Online
OpenStudy (anonymous):

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

OpenStudy (rsmith6559):

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.

OpenStudy (anonymous):

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.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!