-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwhile(true) break.py
More file actions
25 lines (25 loc) · 978 Bytes
/
while(true) break.py
File metadata and controls
25 lines (25 loc) · 978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#kullanıcı adı parola
defusername = "ali"
defparola = "12"
while (True):
username = input("username: ")
parola = input("parolanız: ")
if ((defusername == username) and (defparola == parola)):
print("wellcome", username)
break
elif ((defusername != username) and (defparola == parola)):
print("username is not accurate")
break
elif ((defusername == username) and (defparola != parola)):
print("forgot parola?")
print("parola renew? ( yes or no)")
answer = input("please answer with yes or no to question if you the parola renew want:")
if (answer == "yes"):
new_parola = input("new parola")
print("wait please")
defparola = new_parola
print("parola renew is successful")
else:
break # bu break olmasa kod tekrar başa dönmek suretiyle username soruyor yada ilk if scope'u da öyle
else:
print("tekrar deneyin")