Advertisement
Guest User

Untitled

a guest
Apr 26th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. '''
  2.  
  3. This program is a phonebook that works trhe following way:
  4.  
  5. Display to the user a menu with three options:
  6.  
  7. 1) Add a new entry
  8. 2) View entries
  9. 3) Logoff
  10.  
  11. When the user adds a new entry we will ask him for:
  12. * name
  13. * phone
  14. * occupation
  15.  
  16. We will then confirm that:
  17. * the number is 10 digits or more
  18. * confirm there is a comma
  19.  
  20. We will then replace the "-" with a ".".
  21.  
  22. Then we add a multiline string (with format) to our phonebook list.
  23.  
  24. '''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement