Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.
Wititm a function called password check. password check should like or input a single string. It should return a boolean: True if the pazzword is a...
Help with the code
Wititm a function called password check. password check shouldlike or input a single string. It should return a boolean:True if the pazzword is a valid password according to the rulesbelov, False if it is not.#A string is a valid password if it meets ALL the following#conditions:It must be at least 8 characters long.It must contain at least one character from each of theFollowing categories: capital letters, lover-case letters,numbers, and punctuation. For punctuation, the followingpunctuation zacks are acceptable: "Bass.); ]::.. .3It may not contain any characters that do not fit into thetour categories above. This includes any punctuation macks16not listed in the Bullet point above, spaces, and any other17181920Add your code here!NNNN"Below are some lines of code that will test your function.You can change the value of the variable (s) to test yourfunction with different inputs.It Your function works correctly, this will originally29sprint: True, True, False, False, False30 print (password check ("tHIslsag00d. p4ssword. ") )31 print (password_check ("30t7ENZ ( (T" ) )32 print (password check ("2. short") )33 print (password check ("all. 10wer. case" ) )34 print (password_check ("inv41ld CH4R4CTERS~" ) )3536