Skip to content

Commit

Permalink
Make name one variable in lab assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
laksith19 committed Feb 16, 2022
1 parent df47f6a commit cd0ebed
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions labs/b3.md
Original file line number Diff line number Diff line change
Expand Up @@ -517,24 +517,24 @@ order). If the phonebook has no entries, display `phonebook is empty`
For example,

```bash
$ ./phonebook new Linus Torvalds 101-110-0111
$ ./phonebook new "Linus Torvalds" 101-110-0111
$ ./phonebook list
Linus Torvalds 101-110-1010
$ ./phonebook new Tux Penguin 555-666-7777
$ ./phonebook new Linus Torvalds 222-222-2222
$ ./phonebook new "Tux Penguin" 555-666-7777
$ ./phonebook new "Linus Torvalds" 222-222-2222
$ ./phonebook list
Linus Torvalds 101-110-1010
Tux Penguin 555-666-7777
Linus Torvalds 222-222-2222
# OPTIONAL BEHAVIOR
$ ./phonebook lookup Linus Torvalds
$ ./phonebook lookup "Linus Torvalds"
101-110-1010
222-222-2222
# ALTERNATIVE BEHAVIOR
$ ./phonebook lookup Linus Torvalds
$ ./phonebook lookup "Linus Torvalds"
Linus Torvalds 101-110-1010
Linus Torvalds 222-222-2222
$ ./phonebook remove Linus Torvalds
$ ./phonebook remove "Linus Torvalds"
$ ./phonebook list
Tux Penguin 555-666-7777
$ ./phonebook clear
Expand Down Expand Up @@ -680,4 +680,4 @@ hello from python
[7]: http://www-inst.eecs.berkeley.edu/~selfpace/python/
[8]: https://cs61a.org
[9]: https://docs.python.org/3/library/argparse.html
[data8]: http://data8.org/
[data8]: http://data8.org/

0 comments on commit cd0ebed

Please sign in to comment.