Question: Using this page from the text write in python code. (Page attached) 1. Create a file to store the username and password to a file.
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()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
