in python write the function
Function Name: Open Account
Summary: Bank staff opens a customer’s bank account.
Description: 1. Bank Staff selects “open account”.
2. System prompts bank staff to enter customer PIN, SSN, accounttype (checking or savings), and deposit amount.
3. If the PIN is a 4-digit number and the SSN is a 9 digitnumber, the system stores customer PIN.
4. System creates an account number (5 digits) with the depositamount and displays it.
Alternatives: Wrong PIN and/or SSN: system displays an errormessage and prompts bank staff to enter new PIN and SSN.
Answer
OUTPUT
OR
OR