Question: 1 Create a script called main.py . 2 Define input ( Enter your name: ) as the name, Pas$Word as the password, and
Create a script called main.pyDefine inputEnter your name: as the name, Pas$Word as the password, and the Boolean variable firstInitiate the while loop and for the password ask for the user's inputValidate the password. If the password is correct, print "Welcome back, name". If the validation fails return an error and print the message "Incorrect password, try again..."Run the script in the terminal using the command python main.py
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
