Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Part 1 : Create a User object. In its constructor's parameters take these values - id , first _ name, last _ name, birthday and
Part :
Create a User object. In its constructor's parameters take these values id firstname, lastname, birthday and phone number.
Override str object to print values in this format:
User ID:
Alex Anderson
Part :
Prompt a user to input three options, A S L
if A is a entered then ask user to enter you can assume user will always enter proper data, no need to do checking
id int
first name string
last name string
birthday mmddyyyy format string
phone number xxxxxxxxxx format string
Once user enters data, convert data into a Python object User. Store all given data in your program. You can store it to whatever you want, LIST, TUPLES or DICT, its up to you
Do not accept data if id already exists. You can discard remaining entries if id is duplicate. Print an error message
Prompt user with options after data was collected.
if L is entered then print all entered data in this format
User ID:
Alex Anderson
Prompt user with options after printing all data.
if S is entered then save all data into a file and exit the program.
MUST include:
User.py
main.py must have main function in it
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