Guest User

Untitled

a guest
Nov 20th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. import personalData
  2.  
  3. def main():
  4. print('Let\'s create an Address Book: ')
  5. book = []
  6. while True:
  7. entry = personalData.from_console()
  8.  
  9. print('You\'ve entered the following: ')
  10. print (entry)
  11.  
  12. book.append (entry)
  13.  
  14. addMore = str(input('Would you like to add another entry? (y/n): '))
  15. if addMore.lower ()[0] != 'y':
  16. break
  17.  
  18. if __name__ == "__main__":
  19. main ()
Add Comment
Please, Sign In to add comment