Question: In PyCharm, create a new project called YOURNAME - Assignment 4 Part 1 : Create a User object. In its constructor's parameters take these values
In PyCharm, create a new project called YOURNAMEAssignment
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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
