Thursday, February 3, 2011

python3 lessons !

Today was a interesting lesson that I did about trying to make up passwords,

 the interesting thing about it its that I could  choose the password and also how long I want the password to be.
password = str()
while password != "Portugal":
    password = input("Password: ")
print("Welcome in Mr.Portugal")

 Also how to make up numbers that would add up 3 by 3 like math, Well now I'm in the other lesson which I'm going to be learning about statements, some math like functions, and averages.

1 comment:

  1. Wow, using str() to generate an empty string is new for me. I would have used:

    password = ""

    I learned something new.

    ReplyDelete