Question
Implement a function that creates account details of new users: For this task, your script should create a user account for a user, given the
Implement a function that creates account details of new users: For this task, your script should create a user account for a user, given the users real name (First and Last names), the username to be assigned to the user, and a default password for the user. The real name and username for each user is provided in the file newusers.csv(below). Use an in-built function in python to generate the password for each user. This task should be implemented using a user-defined function. Your function should handle exceptions when the username that is being added already exists in the system. Please code in Python.
BELOW IS THE FILE newusers.crv:
FirstName LastName Username
Sampson Mensah sampsonmensah31
Peace Appiah peaceappiah13
Smith Goodsam smith goodsam18
Pencil Brent pencilbrent68
Joy Brice joybrice26
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