خرید بک لینک

Vote count: 0

 print"Welcome to Caleb's login script!"
    loop = 'true'
    while(loop == 'true'):
    useame = raw_input("Useame Please")
    password= raw_input("Password Please")
    if(useame == "Caleb" and password == "Lamps320"):
    print 'Logged in as ' + useame
    loop = 'false'
     loop1 = 'true'
     while(loop1 == 'true'):
     command = raw_input(useame + " >> ")
     if(command == "exit" or command == "Exit"):
     break
      if(command == "Passwords" or command == "passwords"):
          print"passwords"

            else: 
              print 'Invalid Useame/password!'
                                                                                 I want it to print passwords when I type "Passwords or passwords" it will say  'password'. But when I try and run it and log in and type in passwords or Passwords it will not work. Can somebody help me?

The code is supposed to be a login system to access something. But when I type in the keyword (password) it just retus the command prompt. Note: I used Python2.7.3

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 7 مرداد 1395 ساعت: 9:26

صفحه بندی