count = 0 while count < 3: user = input('>>>') pwd = input('>>>') if user == 'wy' and pwd == '123': print "Welcome to login" break else: print "Incorrect username or password" count = count +1
count = 0 while count < 3: user = input('>>>') pwd = input('>>>') if user == 'wy' and pwd == '123': print "Welcome to login" break else: print "Incorrect username or password" count = count +1