if slse
_username = "alex" _password = "abc123" username = input("username:") password = input("password:") if _username == username and _password == password: print("welcom user{name} login...".format(name = username)) else: print("invalid username or password!")
while
age_of_oldboy = 56 count = 0 while True: if count == 3: break guess_age = int(input("guess age:")) if guess_age == age_of_oldboy: print("you got it:") break; elif guess_age > age_of_oldboy: print("think smaller!") else: print("think bigger!") count +=1