Somewhat off topic: how to break out of running console


#1

so while i was doing the 'while' example -

while choice != 'y' and choice != 'n':  # correct code

i had put an 'or' instead of 'and',

while choice != 'y' or choice != 'n':  # incorrect code

and got into a infinite loop that kept running in the console. i had to read it out load a couple of times to understand the difference.

question is -
how do you break out of this with out having to reload the browser window and loose the code that you have typed?


#2

It should time out in codecademy's environment. If not, reload page, there are no controls to kill it.

The code should save when you run it.


#3

i did reload, yet the little that i had in didn't come back to the screen.

it was only one line that i had to retype, so it wasn't that big of a deal.

thank you for the reply.
em


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.