Question
Please serius programmer only Program 1 20 pts Using python 2.7. Step 1 (10 pts) isValidSSN function PreCondition: one parameter any string Description: returns True
Please serius programmer only
Program 1 20 pts Using python 2.7.
Step 1 (10 pts) isValidSSN function
PreCondition: one parameter any string Description: returns True if the string is in the form ###-##-#### returns False otherwise.
NOTE: do NOT have ANY print statements in this function!
Step 2 (10 pts) - List of SubLists
Continue asking the user to enter SSNs until they type DONE. Use your function to check to ensure the entry is a valid social security number. If the social security number was valid, ask the user to enter the following information:
Last name
First name
Birth year
Store the information in a list called myEmps that contains sublists with the employee name (last name followed by a comma followed by the first name), age, and social security number. Example of how the myEmployees list will look: [ [ Johnson,Joe, 1970, 501-11-1111 ], [Miller,Mary, 1998, 503-33-3333 ] ] When the user types DONE, print headings followed by the entries in the myEmployees list, one per line.
Use the FORMAT METHOD to ensure that columns are aligned. Do NOT use \t to align! Note: all social security numbers should be printed in the form ###-##-#### Example Output:
Name Birth Year SSN
Joe Johnson 1970 501-11-1111 Mary Miller 1998 503-33-3333
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started