What exactly do you mean with "it didn't work"?
Does it print an error message? Does it run, but not as you expected?
Not trying to bash you here, but we can't read minds, you're going to have to use words. :D/>/>
Having said that, let me try to
guess what you might've meant:
You're never actually shutting off the redstone signal, because instead of setting it to false after the sleep(), you set it to true again, effectively not changing it from what it was before that.
I.e. instead of…
print ("password correct!")
redstone.setOutput("left", true )
sleep(2)
redstone.setOutput("left", true )
… you might've wanted to do this…
print ("password correct!")
redstone.setOutput("left", true )
sleep(2)
redstone.setOutput("left", false ) -- Changed 'true' to 'false'.
Is that what you meant? If not: Please
explain. :)/>/>