Absolute Beginner's Python Programming: The Illustrated Guide to Learning Computer Programming
By Kevin Wilson
1/5
()
About this ebook
Written as an illustrated, step-by-step guide and workbook for complete beginners, this illustrated, full color book will introduce you to the python programming language using clear explanations, diagrams, coded examples, lab exercises and video demos.
You'll begin by learning how to set up the python interpreter and development environment on your computer, then you'll dive straight into the basics of python such as python language syntax, python keywords, and how to write and execute python program.
Next, you will learn how to work with python variables, basic data types, arithmetic, companion, and boolean operators.
Furthermore, the book covers flow control constructs such as if/else statements and loops in python. You'll also learn how to define and use functions, recursion, and exception handling, as well as a look at the principles of object-oriented programming.
You'll also learn how to use turtle graphics to draw various shapes and patterns, and how to build a graphical user interface using tkinter. The last section covers developing a game using the PyGame module and how to add graphics, create basic animations, and user interactivity.
At the end of each chapter, you'll find various lab exercises to test what you've learned in the chapter. Also included is a growing repository of sample python source code, bonus material for each chapter, videos, and model solutions to lab exercises to further enhance your learning experience.
Absolute Beginner's Python Programming Guide will give you the tools, confidence, and inspiration to start writing Python programs. If you are a beginner, a developer, a student, or someone who wants to learn on their own, this book is for you.
What You Will Learn
Gain an understanding of computer programming with python
Understand different data and data types in python
Work with Classes and OOP in python
Build interfaces, simple games, and web development with Python
This Book Is For
beginners
developers
students
anyone who wants to learn Python programming on their own.
Kevin Wilson
KEVIN WILSON is Vice President of Videologies, Inc., a company that specializes in training administrative professionals in Fortune 500 companies. JENNIFER WAUSON is President of Videologies, Inc.
Read more from Kevin Wilson
Nothing to See Here: A Novel Rating: 4 out of 5 stars4/5The Family Fang: A Novel Rating: 4 out of 5 stars4/5Administrative Assistant's and Secretary's Handbook Rating: 4 out of 5 stars4/5The Gospel Singer Rating: 4 out of 5 stars4/5The Way of Chai: Recipes for a Meaningful Life Rating: 0 out of 5 stars0 ratingsThe Bird's Nest Rating: 0 out of 5 stars0 ratingsThe AMA Handbook of Business Documents: Gudielines and Sample Documents That Make Busienss Writing Easy Rating: 0 out of 5 stars0 ratingsEssential Android Tablets: The Illustrated Guide to Using Android Rating: 0 out of 5 stars0 ratingsExploring Windows 11 - 2024 Edition: The Illustrated, Practical Guide to Using Microsoft Windows Rating: 0 out of 5 stars0 ratingsExploring Apple Mac - Sequoia Edition: The Illustrated, Practical Guide to Using MacOS Rating: 0 out of 5 stars0 ratingsThe AMA Handbook of Business Writing: The Ultimate Guide to Style, Grammar, Punctuation, Usage, Construction and Formatting Rating: 0 out of 5 stars0 ratingsUsing Excel - 2023 Edition: The Step-by-step Guide to Using Microsoft Excel Rating: 0 out of 5 stars0 ratingsEssential Computing: Concepts of ICT Rating: 0 out of 5 stars0 ratingsBlood and Fears Rating: 4 out of 5 stars4/5Exploring Apple Mac - MacOS Sonoma Edition: The Illustrated, Practical Guide to Using MacOS Rating: 0 out of 5 stars0 ratingsHandbook of Strategic Account Management: A Comprehensive Resource Rating: 0 out of 5 stars0 ratingsGospel Shaped Emotions: Learning to Lay Our Emotions Down at the Cross of Jesus Rating: 0 out of 5 stars0 ratingsExploring Microsoft Office - 2023 Edition: The Illustrated, Practical Guide to Using Office and Microsoft 365 Rating: 0 out of 5 stars0 ratingsMen of Air Rating: 0 out of 5 stars0 ratingsEssential Office 365 Third Edition: The Illustrated Guide to Using Microsoft Office Rating: 5 out of 5 stars5/5Essential Computer Hardware: Understanding the Building Blocks of Modern Technology and Securing Your Digital World Rating: 0 out of 5 stars0 ratingsEssential iPad iOS 12 Edition: The Illustrated Guide to Using your iPad Rating: 5 out of 5 stars5/5Using Microsoft PowerPoint - 2023 Edition: The Step-by-step Guide to Using Microsoft PowerPoint Rating: 0 out of 5 stars0 ratingsAirborne in 1943 Rating: 4 out of 5 stars4/5Computer Jargon: The Illustrated Glossary of Basic Computer Terminology Rating: 0 out of 5 stars0 ratingsExploring Microsoft Office - 2020 Edition: The Illustrated, Practical Guide to Using Office and Microsoft 365 Rating: 0 out of 5 stars0 ratings
Related to Absolute Beginner's Python Programming
Titles in the series (1)
Absolute Beginner's Python Programming: The Illustrated Guide to Learning Computer Programming Rating: 1 out of 5 stars1/5
Related ebooks
Python 3 Programming: A Beginner Crash Course Guide to Learn Python 3 in 1 Week Rating: 3 out of 5 stars3/5Python: Advanced Guide to Programming Code with Python: Python Computer Programming, #4 Rating: 0 out of 5 stars0 ratingsPYTHON: Practical Python Programming For Beginners & Experts With Hands-on Project Rating: 5 out of 5 stars5/5Python 3 Object Oriented Programming Rating: 4 out of 5 stars4/5Python: Programming for Intermediates: Learn the Fundamentals of Python in 7 Days Rating: 4 out of 5 stars4/5Python Programming: Your Beginner Guide To Learn Python in 7 Days Rating: 4 out of 5 stars4/5Python Essentials Rating: 5 out of 5 stars5/5Essential Python 3 Rating: 0 out of 5 stars0 ratingsPYTHON PROGRAMMING Rating: 4 out of 5 stars4/5Python Programming: Your Step By Step Guide To Easily Learn Python in 7 Days Rating: 3 out of 5 stars3/5Python for Beginners: An Introduction to Learn Python Programming with Tutorials and Hands-On Examples Rating: 4 out of 5 stars4/5The 1 Page Python Book Rating: 2 out of 5 stars2/5Python: Beginner's Guide to Programming Code with Python Rating: 0 out of 5 stars0 ratingsLearn Python in 10 Minutes Rating: 4 out of 5 stars4/5Python: Tips and Tricks to Programming Code with Python: Python Computer Programming, #3 Rating: 5 out of 5 stars5/5The Ultimate Python Programming Guide For Beginner To Intermediate Rating: 4 out of 5 stars4/5Functional Python Programming Rating: 0 out of 5 stars0 ratingsPython for Beginners: A Crash Course to Learn Python Programming in 1 Week Rating: 0 out of 5 stars0 ratingsPython for Beginners: Learn the Fundamentals of Computer Programming Rating: 0 out of 5 stars0 ratingsPython from the Very Beginning Rating: 0 out of 5 stars0 ratingsPython: Tips and Tricks to Programming Code with Python Rating: 0 out of 5 stars0 ratingsEasy-To-Follow Tutorial To Learn Python Programming In Less Than One Week Rating: 3 out of 5 stars3/5
Programming For You
Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5Excel 101: A Beginner's & Intermediate's Guide for Mastering the Quintessence of Microsoft Excel (2010-2019 & 365) in no time! Rating: 0 out of 5 stars0 ratingsPython: Learn Python in 24 Hours Rating: 4 out of 5 stars4/5Coding All-in-One For Dummies Rating: 0 out of 5 stars0 ratingsLinux: Learn in 24 Hours Rating: 5 out of 5 stars5/5Excel : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Excel Programming: 1 Rating: 5 out of 5 stars5/5Hacking Electronics: Learning Electronics with Arduino and Raspberry Pi, Second Edition Rating: 0 out of 5 stars0 ratingsSQL All-in-One For Dummies Rating: 3 out of 5 stars3/5Python Programming : How to Code Python Fast In Just 24 Hours With 7 Simple Steps Rating: 4 out of 5 stars4/5HTML in 30 Pages Rating: 5 out of 5 stars5/5Automate the Boring Stuff with Python, 2nd Edition: Practical Programming for Total Beginners Rating: 4 out of 5 stars4/5Learn to Code. Get a Job. The Ultimate Guide to Learning and Getting Hired as a Developer. Rating: 5 out of 5 stars5/5A Slackers Guide to Coding with Python: Ultimate Beginners Guide to Learning Python Quick Rating: 0 out of 5 stars0 ratingsBuilding Business Websites with Squarespace 7 Rating: 4 out of 5 stars4/5Python: For Beginners A Crash Course Guide To Learn Python in 1 Week Rating: 4 out of 5 stars4/5OneNote: The Ultimate Guide on How to Use Microsoft OneNote for Getting Things Done Rating: 1 out of 5 stars1/5Beginning Programming with C++ For Dummies Rating: 4 out of 5 stars4/5SQL: For Beginners: Your Guide To Easily Learn SQL Programming in 7 Days Rating: 5 out of 5 stars5/5
Reviews for Absolute Beginner's Python Programming
1 rating0 reviews
Book preview
Absolute Beginner's Python Programming - Kevin Wilson
Intro to Computer Programming
What is a computer program? A computer program is a set of concise instructions written in a programming language that are executed in sequence in order to achieve a task.
A computer program usually takes some data such as a string, or a number and performs some kind of processing to produce results. We usually refer to the data as the program’s input, and the results as the program’s output.
To write computer programs we use a computer programming language. There are many different languages such as BASIC, C, C++ and Python. In this guide, we are going to concentrate on the Python programming language.
Every computer program manipulates data to produce a result, so most languages allow the programmer to choose names for each item of data.
These items are called variables. A variable is as the name suggests is an item that can contain different values as the program is being executed. Variables can store data of different types, and different types can do different things. For example, a variable could be an integer to store a whole number, a float to store numbers with decimal places, a string to store text, or a list to store multiple data items.
If we wrote a program to calculate the area of a triangle, we could have integer or float type variables for the length, the height, and one for the result as they are all numbers. The processing part of the program would use the numbers stored in the length and height variable, then assign the result to the variable for result. We’ll take a look at variables and data types in more detail in chapter 3
In larger programs, we often need to make decisions based on user input, a calculated result or condition. In this case, we use an if statement. This is called selection. Some blocks of code might also need to be repeated, in this case we use a loop. This is called repetition. We’ll take a closer look at this in chapter 4.
Many modern computer programs have fancy graphical user interfaces that allow the user to interact with buttons, windows and menus. These are known as software applications or apps. We’ll take a look at building a simple app with a graphical user interface in chapter 11.
The Python programming language has specific facilities to enable us to implement the concepts outlined above. Many of these will be introduced throughout this guide.
Introducing Python
Python is a high level language developed by Guido van Rossum in the late ‘80s and is used in web development, scientific applications, gaming, AI, and is well suited to education for teaching computer programming.
Python is designed to be an easily readable language. Therefore, it uses an uncluttered formatting style, and often uses meaningful English keywords and function names.
Python is an interpreted programming language, meaning Python programs are written in a text editor and then put through a Python interpreter to be executed.
Python is used in the field of artificial intelligence and can be found in many day-to-day applications. Streaming services such as Spotify use Python for data analysis, particularly user’s listening habits in order to offer suggestions on which artist to follow, other music a particular user might be interested in and so on. Python is also used within Netflix’s machine-learning algorithms for recommending relevant content to users, monitoring browsing habits, and marketing.
In the world of games development, Python is used as a companion language, meaning Python scripts are used to add customizations to the core gaming engine, script AI behaviors, or server side elements. The performance of Python isn’t fast enough for coding graphics intensive, higher end games, however you can create simple games with Python using the pygame module. We’ll take a look at this in chapter 12.
Python is used in web development and allows a web developer to develop dynamic web apps very quickly. More in chapter 13.
Python is a multi platform language and is available for Windows, MacOS, Linux and the Raspberry Pi.
Setting Up
To start coding, you’ll need a computer - either Windows, MacOS or Linux, and an Integrated Development Environment (IDE) with the Python interpreter. Let’s install Python.
Install on Windows
In our lab, we’re using windows workstations, so we’ll need to install the Python Development Environment for Windows.
Open your web browser and navigate to the following website
www.python.org/downloads/windows
From the downloads page, select the ‘executable installer’ of latest stable release.
Click ‘run’ when prompted by your browser. Or click ‘python-x.x.x-amd64.exe’ if you’re using Chrome.
Once the installer starts, make sure ‘add python 3.x to path’ is selected, then click ‘customize installation’ to run through the steps to complete the installation.
Make sure you select all the tick boxes for all the optional features.
Click ‘next’.
Make sure ‘install for all users’ is selected at the top of the dialog box. Click ‘install’ to begin.
Click ‘disable path length limit’ to make sure Python runs smoothly on Windows and allow long file names.
Click ‘close’ to finish the installation.
You’ll find the Python Development Environment (IDLE) and the Python interpreter, in the Python folder on your start menu.
Install on MacOS
To install Python 3 with the Official Installer, open your web browser and navigate to the following website
www.python.org/downloads/macos
Click download python.
You’ll find the package in your downloads folder. Double click on the package to begin the installation
Run through the installation wizard. Click ‘continue’.
Once the installation is complete, you’ll find python in the applications folder in finder, or on the launch pad.
Install on Linux
If you are running a linux distribution such as Ubuntu or have a Raspberry Pi, you can install python using the terminal. You’ll find the terminal app in