Article 1,
Enter the password. After the password is successfully entered, the welcome message is displayed. If the password is locked three times, the password is saved incorrectly.
User_name = 'Hello world'
Password = '000000'
Url = 'd: \ 7z' # seems useless
Answer1 = input ('enter your USERNAME \ n ')
Answer2 = input ('enter your password \ n ')
If answer1 = user_name and answer2 = password:
Print ('OK, welcome ')
Else:
Answer1 = input ('agqin ')
Answer2 = input ('again ')
Count = 2
While count> 0:
Answer1 = input ('agqin ')
Answer2 = input ('again ')
If answer2! = Password:
Count = count-1
With open ('d: \ 7z \ a \ 1.txt ', 'w') as f:
F. write ('count = 0 ',)
F. close ()
Else:
Print ('good, welcome ')
All variables are uppercase letters indicating constants, for example, π = 3. 1415 .....
1-bit = 1bit
8bit = 1 byte = 1 byte
Cd.../... returned multi-level directory