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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!