please code in python. Each problem will be placed in its own function. You will have a main function that calls the function for each problem. For these problems, you will need to use the following string functions: lower, upper, isupper, islower, isdigit, and replace, along with using [ ] to access individual characters. You may use other string functions if you find them useful. Write a function named isComplexPassword that takes a single input pa- rameter named password. This parameter will be a string. The function will look at each character in the string to determine if the password: • Is at least 8 characters long • Has at least one capital letter • Has at least one number • Has at least one symbol of !, #, or $. If the password string meets all of these requirements, the function should return True, otherwise it should return False (no direct console output). Implement this function using loops to examine each character in the string. You will need to use variables to keep track of whether or not all the requirements are met.
please code in python.
Each problem will be placed in its own function. You will have a main function that calls the function for each problem. For these problems, you will need to use the following string functions: lower, upper, isupper, islower, isdigit, and replace, along with using [ ] to access individual characters. You may use other string functions if you find them useful.
Write a function named isComplexPassword that takes a single input pa-
rameter named password. This parameter will be a string. The function will look at each character in the string to determine if the password:
• Is at least 8 characters long
• Has at least one capital letter
• Has at least one number
• Has at least one symbol of !, #, or $.
If the password string meets all of these requirements, the function should return True, otherwise it should return False (no direct console output). Implement this function using loops to examine each character in the string. You will need to use variables to keep track of whether or not all the requirements are met.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images