Question
Create a Python script that performs the following: Create a password script that compares whether a user is granted access to the network based on
Create a Python script that performs the following:
Create a password script that compares whether a user is granted access to the network based on the input of a password.
Set a variable to a string value.
5 Points
Take input from the user with an input statement. This statement should ask the user to type a password.
10 Point
Use an IF statement to compare the user input with the string variable.
30 Points
Print a statement that states the user is granted access if the password is matches the string variable.
20 Points
Print a statement that states the password does not match the original variable.
20 Points
To receive extra credit, you must accomplish the tasks listed above and include the option listed below in your script. I will give you minimal assistance however, you must do most of the research and testing of your script on your own.
Extra Credit 10 Points
Nest your IF statement within a While Loop that continues to ask the user for the correct password if the input is incorrect. The while statement should break once the correct password has been entered and a message of affirmation should be displayed on the screen.
See next page.
Create a screenshot of your Python Script. 5 Points
Replace the screenshot with your screenshot.
Create a screenshot of your script with 2 responses
Replace the screenshots with your screenshots.
One screenshot should show what happens when the correct password is entered. 5 Points
The other screenshot should show what happens when the incorrect password is entered. 5 Points
Paste all screenshots within this document and upload to Brightspace
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started