PYTHON:
THE NO-NONSENSE GUIDE
Learn Python Programming Within 12 Hours!
Cyberpunk University
Copyright Cyberpunk University 2016. All rights reserved.
In no way is it legal to reproduce, duplicate, or transmit any part of this document by either electronic means or in printed format. Recording of this publication is strictly prohibited, and any storage of this document is not allowed unless with written permission from the publisher. All rights reserved.
The information provided herein is stated to be truthful and consistent, in that any liability, regarding inattention or otherwise, by any usage or abuse of any policies, processes, or directions contained within is the solitary and complete responsibility of the recipient reader. Under no circumstances will any legal responsibility or blame be held against the publisher for any reparation, damages, or monetary loss due to the information herein, either directly or indirectly.
Respective authors own all copyrights not held by the publisher.
Legal Notice:
This book is copyright protected. This is only for personal use. You cannot amend, distribute, sell, use, quote or paraphrase any part or the content within this book without the consent of the author or copyright owner. Legal action will be pursued if this is breached.
Disclaimer Notice:
Please note the information contained within this document is for educational and entertainment purposes only. Every attempt has been made to provide accurate, up to date and reliable, complete information. No warranties of any kind are expressed or implied. Readers acknowledge that the author is not engaging in the rendering of legal, financial, medical or professional advice.
By reading this document, the reader agrees that under no circumstances are we responsible for any losses, direct or indirect, which are incurred as a result of the use of information contained within this document, including, but not limited to, errors, omissions or inaccuracies.
Table of Contents
Introduction
You have made the right first stride towards becoming a hobbyist or a professional programmer using Python, one of the most widely used programming language on computers today. First off, welcome to a presentation of Cyberpunk University. Thank you for investing in this eBook, and we hope you will follow through it to learn how to develop your coding skills and become a Python programmer with ease within just days.
This eBook is structured into 12 practical chapters that take roughly an hour to do. We have designed the content of the book to be easy to follow for both complete beginners to programming and those with knowledge of other programming languages or have been introduced to Python partially before. The over 50 exercises distributed over the 12 hours of the course duration are an excellent way to get started learning to master all the essentials about Python.
Cyberpunk University is committed to producing content that helps learners discover their coding skills and to learn processes that make it easy for them to think of solutions to daily human problems. Many other programming books are coming in the future so be sure to check our catalog and get the chance to learn even more ways to write programs in different languages that computers can understand.
To help you get the most out of this book we have created the FREE Cyberpunk Python Whizz Kit. The Kit contains an awesome cheat sheet to help you program as fast as possible and weve also included ALL the exercises from this book in python files. You can use them however you want.
DOWNLOAD THE FREE WHIZZ KIT HERE:
CYBERPUNK PYTHON WHIZZ KIT
Hour 1: Getting Started with Python
Whether this is your initial foray into the world of programming, or you are learning Python to expand your programming skills set with a new language, you have come to the right place.
Every programmer has a story about they got into programming and what the first program they wrote was. This book is intended for complete beginners in the world of programming and Python in particular. We hope it will be useful enough for you to remember it when you tell the story of your path to being a successful professional or hobbyist programmer in the future.
This book focuses more on the practical aspects of writing code in Python. You do not need external resources to master the basics of Python programming, although some people find extensive researching even more useful. If you are a beginner in programming, I would recommend that you follow this guide exactly as instructed and only venture to wider research and practice after you understand the concepts each exercise it teaches. This will help prevent the confusion that arises from taking instructions from different sources.
This book is structured to guide you learn the essential basics of Python programming in 12 hours, each chapter representing an hour of code.
1.1 What is Python?
Everyone today knows what a computer is and understand why programmers are responsible for computers (including machines, Smartphone, cars, planes, etc.) doing what we command them to. By learning to program computers, you have chosen to join the millions of programmers who strive to make life easier by writing programs in a computer language that instruct machines what to do. Python is one of these programs.
We can define Python as a very popular high-level, general-purpose, interpreted, and dynamic programming language that is very easy to learn. The design philosophy of Python focuses on code readability, and its syntax makes it easy for programmers to express the concepts in a computer program in fewer lines of code compared to other popular languages such as Java and C++.
1.2 Top Benefits of Learning Python Programming
Python is a general-purpose programming language. This means when you become a Python programmer, you can build just about anything from website back-end and artificial intelligence systems to desktop apps and robotic programs.
Because of its code readability, Python is a very easy to understand language and can be a perfect Launch pad for individuals hoping to go ahead and learn other more advanced languages. The language is governed by flexible rules, it offers limitless career opportunities to those who master it as a skill, and to put it simply, Python is the programming language of the future.
There is also a very vibrant and active support community with ready answers to all questions and concerns you may have during and after learning the basics. StackOverflow and Github are the best examples. The Python community is always willing to share meaning that most tools and libraries you will need to make your work easy will be just a simple search away.
1.3 Who is this book meant for?
To make use of this book, you must meet a few requirements:
- Python is a cross-platform language. You must have a computer running Windows, Mac, or Linux operating system.
- You must pay attention to detail. What typically separates good programs from bad ones is how meticulous they are in recognizing every element in the code, from a comma to space, and making sure every character is in its place.
- You must have basic computer skills. This means you should be able to download and install a program, type, manipulate files on your computer, and know how to read and write (duh!).
1.4 Installing Python and Text Editor
Installing Python is simple. The most recent version of Python (Python 3.5 at the time of publication of this guide) is often included in many UNIX and Linux distributions.
Step 1 : On your browser, go to www.python.org. Hover your pointer over the Download button and click Python 3.5.2 to download for your operating system. You will also need to know whether your operating system is 32-bit or 64-bit to download the correct version.
Next page