Due: Mon Feb 17 Write a program that Opens the password file - Read each line of the password file - If it's good, add it a good list - If it bad, add it to a bad list After you've built the lists - Sort each list - Write both lists to separate files Note: - A password is good if Start with a lowercase letter Continues with lower, upper, or digits Is between 4..12 characters long - A home directory is good if starts with a / continues with a / or a lower case letter - The shell should be /bin/bash or /bin/sh When you're done, the format of the output files should match the format of the input file. data = [ [2, "root", "x", "/root", "/bin/bash"], [3, "rappleto", "x", "/home/rappleto", "bin/bash] ... ] Helpful code: import re #Search for an upper case "S" character in the beginning of a word, and print its position: txt = "The rain in Spain" x = re.search(r"rain", txt) if x == None: print("Not found") else: print("Found") For 1% bonus: Tell me the median gid number of all good accounts.