• anonymous
I was working on the rock paper scissors exercise from handout 1 (ex. 1.7). When I tried to run an early version of the program it gave me an empty prompt above the first raw_input statement and I had to hit return to get the program to proceed. There was no visible code causing this, but when I eliminated a few empty lines at the top of the program, the problem resolved and it went straight to the first raw_input. Anybody know what caused this and how to avoid it? It really threw me.
MIT 6.189 A Gentle Introduction to Programming Using Python (OCW)
  • Stacey Warren - Expert
Hey! We 've verified this expert answer for you, click below to unlock the details :)
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
  • chestercat
I got my questions answered at in under 10 minutes. Go to now for free help!
  • anonymous
I'm not totally certain; but I can conjure a guess that it has to do with Python's use of white space.

Looking for something else?

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