2011-03-22 20:57:00 UTC
# Prompt the user for a password and check it against "hello"
if str(raw_input("Please enter your password: ") == "hello"
# if the user entered "hello" ask their name and respond based on input
if raw_input("Please enter your name: ") == "Diane"
print "What a great name!"
elif str(raw_input("Please enter your name: ")) == "Charlene"
print "May I have your autograph, please?"
elif str(raw_input("Please enter your name: ")) == "Agatha"
print "May I have your autograph, please?"
else
print str_name + ", that's a nice name."
print "Thank you for using Program 3 - Loops and If conditions!"