
The Absolute Beginner's Guide to Python Programming: A Step-by-Step Guide with Examples and Lab Exer
Kevin Wilson
Résumé
You'll begin by learning to set up your Python environment. The next few chapters cover the basics of Python such as language classifications, Python language syntax, and how to write a program. Next, you will learn how to work with variables, basic data types, arithmetic, companion, and Boolean operators, followed by lab exercises. Further, the book covers flow control, using functions, and exception handling, as well as the principles of object-oriented programming and building an interface design. The last section explains how to develop a game by installing PyGame and how to use basic animation, and concludes with coverage of Python web development with web servers and Python web frameworks.
The Absolute Beginners Guide to Python Programming will give you the tools, confidence, and inspiration to start writing Python programs. If you are a programmer, developer, or 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
- Understand different data and data types
- Work with Classes and OOP
- Build interfaces, simple games, and web development with Python
Who This Book Is For Software programmers, developers or students, or anyone who wants to learn Python programming on their own.
Setting Up
Chapter 2: The Basics Goal: Covers basics, syntax, writing a basic program and executing the codeSub-topics
Language ClassificationLow-Level LanguageHigh-Level LanguagePython Language SyntaxReserved WordsIdentifiersIndentationCommentsInputOutputEscape CharactersWriting a Program
Chapter 3: Working with Data
Goal: Covers data types: integers, lists, strings, etc, etc , variables, operatorsSub-topics
VariablesLocal VariablesGlobal VariablesBasic Data TypesIntegersFloating Point NumbersStringsListsTwo Dimensional ListsSetsTuplesDictionariesCasting Data TypesArithmetic OperatorsOperator PrecedencePerforming ArithmeticComparison OperatorsBoolean OperatorsBitwise OperatorsLab Exercises
Chapter 4: Flow Control Goal: Explains flow control, sequence, if/elif, for/whileSub-topics
SequenceSelectionif...elseelifIteration (Loops)For loopWhile loopBreak and ContinueLab Exercises
Chapter 5: Handling Files Goal: Explains file handling, reading files, writing to files, text files, binary files
File TypesText FileBinaryText File OperationsOpen FilesWrite to a FileRead from a FileBinary File OperationsOpen FilesWrite to a FileRead a FileRandom File AccessLab Exercises
Chapter 6: Using Functions Sub-topics
Declaring FunctionsRecursionLab Exercises
Chapter 7: Exception Handling Goal: Covers exception and error handling
Sub-topicsTypes of ExceptionCatching ExceptionsRaising your Own Exceptions
Chapter 8: Object Oriented Programming Goal: OOP principles, classes, objects and inheritanceSub-topics
Principles of OOPEncapsulationInheritancePolymorphismAbstractionClasses & ObjectsClass InheritancePolymorphic ClassesMethod Overriding
Chapter 9: Building an Interface Goal: Building an interface using tkinterSub-topics
Creating a WindowAdding WidgetsMenusThe CanvasImagesButtonsMessage BoxesText FieldListboxCheckboxLabelsLabel FrameInterface Design
Chapter 10: Developing a Game Sub-topics
Installing PyGameOpening a WindowAdding an ImageThe Game LoopThe Event LoopShapesBasic Animation
Chapter 11: Python Web Development Sub-topics
Web ServersExecuting a ScriptPython Web Frameworks
Quick Reference Data TypesNumeric OperatorsComparison OperatorsBoolean OperatorsString OperatorsList OperatorsDictionary OperatorsString MethodsList MethodsDictionary MethodsFunctionsFilesConditionalMulti ConditionalWhile LoopFor LoopLoop ControlModulesBuilt in FunctionsDeclare a ClassChild ClassCreate ObjectCall Object Method
Caractéristiques techniques
PAPIER | |
Éditeur(s) | Apress |
Auteur(s) | Kevin Wilson |
Parution | 07/10/2022 |
Nb. de pages | 193 |
EAN13 | 9781484287156 |
Avantages Eyrolles.com
Consultez aussi
- Les meilleures ventes en Graphisme & Photo
- Les meilleures ventes en Informatique
- Les meilleures ventes en Construction
- Les meilleures ventes en Entreprise & Droit
- Les meilleures ventes en Sciences
- Les meilleures ventes en Littérature
- Les meilleures ventes en Arts & Loisirs
- Les meilleures ventes en Vie pratique
- Les meilleures ventes en Voyage et Tourisme
- Les meilleures ventes en BD et Jeunesse