Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 2012 Proceedings Part 2 Lnai 7197

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284892, 978-3642284892

More Books

Students also viewed these Databases questions