Learn Programming in Python with Cody Jackson
Grasp the basics of programming and Python syntax while building real-world applications
Cody Jackson
BIRMINGHAM - MUMBAI
Learn Programming in Python with Cody Jackson
Copyright 2018 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
Commissioning Editor: Aaron Lazar
Acquisition Editor: Chaitanya Nair
Content Development Editor: Anugraha Arunagiri
Technical Editor: Ashi Singh
Copy Editor: Safis Editing
Project Coordinator: Ulhas Kambali
Proofreader: Safis Editing
Indexer: Priyanka Dhadke
Graphics: Tom Scaria
Production Coordinator: Shraddha Falebhai
First published: November 2018
Production reference: 1281118
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78953-194-7
www.packtpub.com
mapt.io
Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website.
Why subscribe?
Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals
Improve your learning with Skill Plans built especially for you
Get a free eBook or video every month
Mapt is fully searchable
Copy and paste, print, and bookmark content
Packt.com
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.packt.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at customercare@packtpub.com for more details.
At www.packt.com , you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.
Contributors
About the author
Cody Jackson is a disabled military veteran, the founder of Socius Consulting, an IT and business management consulting company in San Antonio, Texas, and a co-founder of Top Men Technologies with Scott Thompson. He is currently employed at CACI International as the lead ICS/SCADA modeling and simulations engineer. He has been involved in the tech industry since 1994, when he left Gateway Computers to join the Navy as a nuclear chemist and radcon technician. Prior to joining CACI, he worked at ECPI University as a computer information systems adjunct professor. He is a self-taught Python programmer, and is the author of Learning to Program Using Python and Secret Recipes of the Python Ninja. He holds an Associate in Science degree in electromechanical technology, a Bachelor of Science degree in computer engineering technology, and a Master of Science degree in IT management, as well as numerous IT certifications.
I would like to thank my wife and family for having to put up with another book writing disappearing act for the last four months, Scott Thompson for creating the fuel farm schematic drawing, Christopher De La Rosa for allowing me to use the knowledge from work in this book, and the open source community for providing such great tools to work with.
About the reviewers
Nimesh Kiran Verma has a dual degree in math and computing from IIT Delhi, and has worked with companies such as LinkedIn, Paytm, and ICICI for about five years in software development and data science. He co-founded a micro-lending company, Upwards Fintech, and currently serves as its CTO. He loves coding and has mastered Python and its popular frameworks, including Django and Flask. He extensively leverages Amazon Web Services, design patterns, and SQL and NoSQL databases to build reliable, scalable, and low-latency architectures.
Naveen Verma has completed his bachelor's degree in computer science and is a software developer at Turtlemint insurance company. He has knowledge of C, C+, Python, Django, and Android, and is a Java Oracle certified associate, a technology with which he has built various projects. He is also an active open source contributor. He loves solving brainstorming puzzles and ongoing learning is his focus in life.
To our mom and dad, Nutan Kiran Verma and P R Verma, who made us what we are today and gave us the confidence to pursue our dreams. Thanks also to Prabhat, who motivated us to steal time for this book when, in fact, we were supposed to be spending it with him.
Our thanks also to Ulhas and the entire Packt team. Your support was tremendous.
Packt is searching for authors like you
If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea.
Preface
Much like programming, this book is a fork from another book series: Learning to Program Using Python. I started that series in 2008, while deployed in Iraq. I had just learned Python, but didn't feel comfortable with it, especially as the books I had read didn't really "click" with me.
I wrote that series for two reasons. First, I wanted to give back to the open source community. Second, the best way to learn something is to try and teach it to someone else; since I wasn't comfortable as a programmer, writing a book for others would be one of the best ways to ensure I knew what I was talking about.
I also wanted to write the type of book I would have liked to have read when I was learning: written from a personal perspective, rather than an academic viewpoint, and one that points out tips and traps to be aware of. Hence, every book in the series came from that viewpoint.
Next page