First, become a collaborator on your repository (see above), then replace our license file (license.txt) with an open source license of your choice. What if I want to release my source code under an open source license? If that's the case, please email Gwenan Spearing at with a link to the repository and details of the error, and it will be fixed as soon as possible. However, with a lot of books to take care of, it's possible that something got missed. We've made every effort to ensure that code is migrated to GitHub as a complete package, exactly as you submitted it to us. There's a problem with my book's repository on GitHub. We also recommend the excellent book, Pro Git, written by Scott Chacon and Ben Straub and published by Apress, and available online here. GitHub includes detailed help documents at. Information for AuthorsĬan I be added as a collaborator to my book's repository on GitHub?Ībsolutely! Please contact your coordinating editor and include your GitHub username, and a link to the repository. Also, Read 100+ Machine Learning Projects Solved and Explained. Somehow this follows the use of data structures and algorithms as we are going to add contacts to the book and find them using the person’s name. Only changes that are approved by the author will be accepted. Creating a contact book is a great project for someone who is at an intermediate level in Python. Please note that if your commit message is not clear, the correction will not be accepted. Include a commit message describing the correction. Create a new branch on which to make your change.Fork the repository for the relevant book.However, under fair use we encourage you to make use of the GitHub platform to directly contribute minor corrections and updates for the benefit of the authors and other readers. This means that you are not allowed to reuse it for commercial or educational purposes (e.g. If you have any problems accessing the source code for an Apress book, email How can I contribute?Ĭopyright for Apress source code belongs to the author(s) of the relevant book. If for any reason you want to get hold of the original source code, exactly as it is in your copy of the book, you can go to /releases and download release v1.0. That means that if there are any corrections, you will always get the latest version. Source code can be continuously updated after a book has published. Once you have located the repository you want, download the code as a zip using the green button, or, if you have a GitHub account, you can clone it to your machine using Git.In the Find repositories search field, enter the book’s ISBN, author surname, or book title. If your book’s GitHub repository URL is not listed in the book itself, you can find it by doing the following: You do not need a GitHub account to access our source code, but we recommend signing up to make the most of this service. Read this page to find out more about this project, and how you can contribute. If entry_to_delete in ():įor name, number in code for Apress books is on GitHub, where it can be continuously updated. Print(search, " : ", self.phonebook)Įntry_to_delete = input("ENTER NAME OF ENTRY TO DELETE: ") Search = input("ENTER NAME TO SEARCH FOR: ") #Prompt the user for the name to search for, and search the phonebook dictionary #Print out the entire phonebook dictionaryįor name, number in (): #Create a string to be written to the file #Prompt the user for the details of the new entry #Load all of the items from the text file into the dictionary It only seems to run in idle though - when I run the actual python file - the menu doesn't work. I'd be grateful if y'all could give me some tips and ways to improve on it/make it more efficient :) So to refresh my memory and have a bit of a practice I wrote a quick phone-book program. I got bored of revision last night, and decided to have another go at python!
0 Comments
Leave a Reply. |