Skip to content

Instantly share code, notes, and snippets.

@hay hay/resit-2a
Created Nov 14, 2018

Embed
What would you like to do?
Welcome to the fake people database!
No people database yet
Make a choice:
1) Remove a person
2) Add a person
3) Quit the program
Make your choice: [1/2/3]: 2
Added Jane with phone number 52334
Saved the database with 1 people
There are 1 people in the database:
[0] Jane - Tel: 52334
Make a choice:
1) Remove a person
2) Add a person
3) Quit the program
Make your choice: [1/2/3]: 2
Added Sean with phone number 706883
Saved the database with 2 people
There are 2 people in the database:
[0] Jane - Tel: 52334
[1] Sean - Tel: 706883
Make a choice:
1) Remove a person
2) Add a person
3) Quit the program
Make your choice: [1/2/3]: 1
What is the index number of the person to remove? 0
Removing Jane
Saved the database with 1 people
There are 1 people in the database:
[0] Sean - Tel: 706883
Make a choice:
1) Remove a person
2) Add a person
3) Quit the program
Make your choice: [1/2/3]: 3
I see you!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.