Using this page from the text write in python code. (Page attached) 2. Store the
ID: 3745906 • Letter: U
Question
Using this page from the text write in python code. (Page attached)2. Store the password as an ordinal Unicode value. Chapter 10 How to work with strings 279 The user interface Enter full name You must enter your full name. Eric Eric Idle Enter full name: Enter password Password must be 8 characters or more with at least one digit and one uppercase letter. Enter password: sesame sesaMe123 Hi Eric, thanks for creating an account. The code def main): get full name () full_name print () password -get password ) print ) Arst name - get _fhrst name(ful1 name) print (-mi " + first-name +",thanks for creating an account." def get full name(): while True name input ("Enter full name:strip) f " " in name: return name else: print ("You must enter your full name. def get password) while True password input ("Enter passvord: digit False cap letter-False tor char in password: if char . isdigit()i digit True elif char.isupper cap letter True if digit --False or cap letter-- False or len(password) 8 print ("Password must be 8 characters or more In"+ "with at least one digit and one uppercase letter..) else: return password def get arst name (full name): full name. find(" indexl first name full name[rindex1 return first name main()
Explanation / Answer
For first point added one method for saving the details to file but 2 is not so clear because python3 support unicode by default please do comment and let me knw that u required something else
#output
Enter full name: Eric Idle
Enter password: seasMe1231
Hi Eric, thanks for creating an account.
creds for user saved to creds.txt
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.