Question: Can someone please help with problem 3? I have to write a code that follows the step-by-step instructions seen in red in the Linux Mint
Can someone please help with problem 3? I have to write a code that follows the step-by-step instructions seen in red in the Linux Mint software
Problem 3. (Password Checker) Implement the function is_valid() in password_checker.py that returns True if the given password string meets the following specifications, and False otherwise: At least eight characters long. Contains at least one digit (0-9). Contains at least one uppercase letter. Contains at least one lowercase letter. Contains at least one character that is neither a letter nor a number. Hint: use the str methods isdigit(), isupper(), islower(), and isalnum(). $ python password_checker .py Abcde1fg False $ python password_checker.py Abcde1@g True File Linux Mint [Running] password_checker.py (/coursework/homework8) Edit View Search Tools Documents Help on% OO 9 import stdio import sys # Returns True if pwd is a valid password and False otherwise. def is_valid (pwd): # Test client [DO NOT EDIT]. Reads a password string as command-line argument # and writes True if it's valid and False otherwise. def main(): pwd = sys.argv[1] stdio.writeln(is_valid(pwd)) if == ' main ': name _main()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
