Thursday, February 10, 2011

Feb/9/2011

I was working in a small application that ask you to enter a password bu the is a password that will be the correct take a look at the commands.

password = str()
while password != "unicorn":
    password = input("Put your Password: ")
print("Welcome in")



this will keep asking you about a password but if you don't know the password you will bot able to get in .
 I the second line of the command It said I you enter the password is "unicorn" you will get a message "Welcome in" . Some screen shot:




in this picture I type "lady" as a password and as you see it ask me for it, again.
Look if I type the password unicorn that is located in the second line of the application.




When I type the password "unicorn" it will said: Welcome in.

1 comment: