Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

We all hate the password checks when we create a new password. Now create your own script to check if a password is a certain

We all hate the password checks when we create a new password. Now create your own script to check if a password is a certain length and if the password and confirmation password match. Print the results to the console.

For this question, you are required to create the following Python functions: Create a function named hide_password. The purpose of this function is to return clear text password as asterisks (*)

The function needs to receive 1 (one) string parameter and return the string clear text password as an series of asterisk. (Example: For the password "abcd" the function returns "****" (4) characters)

In the function, you need to make use of a for loop

Create a function named valid_password. In this function, you have to determine if the password has more than 3 (three) characters.

The function needs to receive 1 (one) string parameter and return true (if the password is more than 3 (three) characters) or false (if the password is less than 3 (three) characters)

Create a function named same_password. In this function, you have to determine if the password and the confirmation password is the same.

The function needs to receive 2 (two) string parameters and return true (if the 2 (two) words match) or false (if the 2 (two) words do not match)

For the main part of the script:

You would need an input for the user's name

You would need an input for the password

You would need an input for the confirmation password

You have to determine from the above functions what conditions have not been met if any, and print the result to the console. If all above conditions are met, you need to print to the console a message to the user that his password has been changed and that it is secured with an asterisk.

(Example)

As your answer, paste all of your Python code.

Answer text

We all hate the password checks when we create a new password. Now create your own script to check if a password is a certain length and if the password and confirmation password match. Print the results to the console.

For this question, you are required to create the following Python functions: Create a function named hide_password. The purpose of this function is to return clear text password as asterisks (*)

The function needs to receive 1 (one) string parameter and return the string clear text password as an series of asterisk. (Example: For the password "abcd" the function returns "****" (4) characters)

In the function, you need to make use of a for loop

Create a function named valid_password. In this function, you have to determine if the password has more than 3 (three) characters.

The function needs to receive 1 (one) string parameter and return true (if the password is more than 3 (three) characters) or false (if the password is less than 3 (three) characters)

Create a function named same_password. In this function, you have to determine if the password and the confirmation password is the same.

The function needs to receive 2 (two) string parameters and return true (if the 2 (two) words match) or false (if the 2 (two) words do not match)

For the main part of the script:

You would need an input for the user's name

You would need an input for the password

You would need an input for the confirmation password

You have to determine from the above functions what conditions have not been met if any, and print the result to the console. If all above conditions are met, you need to print to the console a message to the user that his password has been changed and that it is secured with an asterisk.

(Example)

As your answer, paste all of your Python code.

Answer text

We all hate the password checks when we create a new password. Now create your own script to check if a password is a certain length and if the password and confirmation password match. Print the results to the console.

For this question, you are required to create the following Python functions: Create a function named hide_password. The purpose of this function is to return clear text password as asterisks (*)

The function needs to receive 1 (one) string parameter and return the string clear text password as an series of asterisk. (Example: For the password "abcd" the function returns "****" (4) characters)

In the function, you need to make use of a for loop

Create a function named valid_password. In this function, you have to determine if the password has more than 3 (three) characters.

The function needs to receive 1 (one) string parameter and return true (if the password is more than 3 (three) characters) or false (if the password is less than 3 (three) characters)

Create a function named same_password. In this function, you have to determine if the password and the confirmation password is the same.

The function needs to receive 2 (two) string parameters and return true (if the 2 (two) words match) or false (if the 2 (two) words do not match)

For the main part of the script:

You would need an input for the user's name

You would need an input for the password

You would need an input for the confirmation password

You have to determine from the above functions what conditions have not been met if any, and print the result to the console. If all above conditions are met, you need to print to the console a message to the user that his password has been changed and that it is secured with an asterisk.

(Example)

As your answer, paste all of your Python code.

Answer text

We all hate the password checks when we create a new password. Now create your own script to check if a password is a certain length and if the password and confirmation password match. Print the results to the console.

For this question, you are required to create the following Python functions: Create a function named hide_password. The purpose of this function is to return clear text password as asterisks (*)

The function needs to receive 1 (one) string parameter and return the string clear text password as an series of asterisk. (Example: For the password "abcd" the function returns "****" (4) characters)

In the function, you need to make use of a for loop

Create a function named valid_password. In this function, you have to determine if the password has more than 3 (three) characters.

The function needs to receive 1 (one) string parameter and return true (if the password is more than 3 (three) characters) or false (if the password is less than 3 (three) characters)

Create a function named same_password. In this function, you have to determine if the password and the confirmation password is the same.

The function needs to receive 2 (two) string parameters and return true (if the 2 (two) words match) or false (if the 2 (two) words do not match)

For the main part of the script:

You would need an input for the user's name

You would need an input for the password

You would need an input for the confirmation password

You have to determine from the above functions what conditions have not been met if any, and print the result to the console. If all above conditions are met, you need to print to the console a message to the user that his password has been changed and that it is secured with an asterisk.

(Example)

As your answer, paste all of your Python code.

Answer text

We all hate the password checks when we create a new password. Now create your own script to check if a password is a certain length and if the password and confirmation password match. Print the results to the console.

For this question, you are required to create the following Python functions: Create a function named hide_password. The purpose of this function is to return clear text password as asterisks (*)

The function needs to receive 1 (one) string parameter and return the string clear text password as an series of asterisk. (Example: For the password "abcd" the function returns "****" (4) characters)

In the function, you need to make use of a for loop

Create a function named valid_password. In this function, you have to determine if the password has more than 3 (three) characters.

The function needs to receive 1 (one) string parameter and return true (if the password is more than 3 (three) characters) or false (if the password is less than 3 (three) characters)

Create a function named same_password. In this function, you have to determine if the password and the confirmation password is the same.

The function needs to receive 2 (two) string parameters and return true (if the 2 (two) words match) or false (if the 2 (two) words do not match)

For the main part of the script:

You would need an input for the user's name

You would need an input for the password

You would need an input for the confirmation password

You have to determine from the above functions what conditions have not been met if any, and print the result to the console. If all above conditions are met, you need to print to the console a message to the user that his password has been changed and that it is secured with an asterisk.

(Example)

As your answer, paste all of your Python code.

Answer text

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions