set the variable

it would seem to me that you would need to use "raw_input" rather than just the "input" command. also, the variable password is always just " " ( a space) because it is never being set to anything different, so your if statement will never be true. suggestion, replace "input" with "password = raw_input"

@WynnDeezl: In python3 raw_input is not available, and input works like raw_input did in earlier versions of python. That's why I avoid the issue and use sys.stdin . I didn't see a python version in Nick Wyden's posts.

@Nick Wyden: highlight the program portion of your message, then click the # sign above the forum input editing space. Follow link at my signature for more information about space preservation in your posts.

does store the response into password.
If you're using python 3 the correct response is
bob
If you're using an earlier version of python you'd have to enter a string
"bob"
or you could follow WynnDeezl's advice to use raw_input
or you could get it right in either python version and use