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:

  1. If the users input word is less than 8 characters, output Password not long enough.
  2. If the users input word is greater than or equal to 8 characters, do the following:
    1. Replace e with @
    2. Replace s or S with $
    3. Replace t or T with +
    4. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!