Question
In python, write the following program, high school question, please keep simple 7.2 Code Practice: Question 2 Instructions Write a program to generate passwords. The
In python, write the following program, high school question, please keep simple
7.2 Code Practice: Question 2
Instructions
Write a program to generate passwords. The program should ask the user for a phrase and number, and then create the password based on our special algorithm. The algorithm to create the password is as follows:
- If the users input word is less than 8 characters, output Password not long enough.
- If the users input word is greater than or equal to 8 characters, do the following:
- Replace e with @
- Replace s or S with $
- Replace t or T with +
- Capitalize the word and add the number to the end.
Ever wonder why strong passwords are important? Read here (Links to an external site.) for more information on strong passwords.
Sample Run 1
Enter your word: zebras
Enter a number: 62
Password not long enough.
Sample Run 2
Enter your word: newyorkcity
Enter a number: 892
Password: N@wyorkci+y892
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