
Python for Absolute Beginners: A Practical Introduction to Modern Python with Simple Hands-on Projects
- Length: 385 pages
- Edition: 1
- Language: English
- Publisher: Independently published
- Publication Date: 2021-11-22
- ISBN-10: B09M5B6NB4
- ISBN-13: 9798772028322
- Sales Rank: #391257 (See Top 100 Books)
Learn Real Python Programming Today! With Hands-On Coding Projects and Exercises
Wanna learn programming? Wanna learn Python? Start from this book! This book will teach you the fundamentals of programming and the Python language basics, in a series of thoughtfully organized lessons for the most effective learning experience. It includes many hands-on exercises!
Python for (Absolute) Beginners will give you the best introduction to programming in Python whether you are coming from a different programming language background or you are learning programming for the first time. This book covers all the essential features of Modern Python (Python 3.10/3.11) through the carefully designed code examples.
Python for (Absolute) Beginners starts from the absolute basics such as how to install the Python tools on your machine, and how to use the Python interactive shell, and it covers all the key concepts of Python 3 with enough depth to be useful even to the experienced programmers.
Python for (Absolute) Beginners is rather unique in that, throughout the book, we cover the fundamentals of Python programming while working on a few simple real programming projects. The book also includes a few “lab sessions” with a number of practical exercises, in which the readers can practice real hands-on programming.
Python for (Absolute) Beginners covers the following topics, among others:
- How to install Python locally on your machine.
- How to effectively use the Python REPL (interactive shell)
- The basic structure of a Python program.
- Python modules and packages.
- Basic constructs of Python such as expressions and statements.
- Simple built-in data types, e.g., as integer, float, bool, and string.
- Complex built-in data types, e.g., list, tuple, and dictionary.
- Objects. Variables and assignments.
- Immutability vs mutability.
- Arithmetic and comparison operations.
- Built-in functions and methods, e.g., print(), input(), type(), etc.
- Loops using the for and while statements.
- If-else conditional expressions and conditional statements.
- The new `match` statement. (New as of 3.10.) Structural pattern matching.
- How to define a function using the def statement.
- How to define a custom type using the class statement.
- How to create a new enum type.
- Typing and type annotations.
- Fundamental concepts of programming such as “recursion”.
- Object oriented programming (OOP).
- Basics of the software development process.
Order your copy and start learning real Python programming today!
Note 1: The book primarily uses CLI (terminal programs), and not IDEs, to illustrate the software development practice.
Note 2: Smart people will most likely pick up this book and end up learning real solid Python programming in the long run!
Preface Introduction Modern Python Book Organization Absolute Basics 1. Hello Monty Python 1.1. The First Step 1.2. The Project 2. Development Environment Setup 2.1. Command Line Interface (CLI) 2.2. Python Installation 2.3. Visual Studio Code 2.4. Python Extension 2.5. Test Program 2.6. How to Run Python Programs 2.7. Code Review 2.8. Type Annotations 2.9. Summary 3. Interactive Tour of Python 3.1. Python REPL 3.2. Basic Concepts of Programming 3.3. Summary 4. Numbers, Strings, and More 4.1. Starting Python Interactive Session 4.2. Numbers in Python 4.3. Builtin type Function 4.4. Errors 4.5. Expressions 4.6. Interactive vs Non-Interactive Modes 4.7. Builtin print Function 4.8. The None Object 4.9. Boolean Expressions 4.10. Dynamic Typing 4.11. Builtin bool Function 4.12. Simple and Compound Statements 4.13. Conditional Statement 4.14. Strings in Python 4.15. String Concatenations 4.16. Ending Python Interactive Session 4.17. Summary 5. Tuples, Lists, and Some Inspirations 5.1. Complex Types 5.2. Tuple Literals 5.3. Expression List 5.4. Tuple Type 5.5. List Literals 5.6. List Operations 5.7. "Names" in Python 5.8. Assignment 5.9. Slicing 5.10. Sorting 5.11. Help!! 5.12. Inspirations 5.13. Summary 6. Review - Basics 6.1. Questions 6.2. Exercises Rock Paper Scissors Project 7. Hello Rock Paper Scissors! 7.1. Working on a Project 7.2. Let’s Play Rock Paper Scissors 8. Software Design 8.1. Deconstructing Rock Paper Scissors 8.2. Tasks 9. Project Setup 9.1. Workspace 9.2. Virtual Environments 9.3. Package Install 9.4. Source Control System Imperative Programming 10. Main Project - Rock Paper Scissors 10.1. Rock Paper Scissors 10.2. Import Statement 10.3. Function Definition 10.4. Comparison Operators 10.5. The if Statement 10.6. Builtin input Function 10.7. Variables/Names 10.8. Rules on Names 10.9. Naming Conventions 10.10. Scopes 10.11. String Methods 10.12. Random Module 10.13. Boolean Operators 10.14. Lines in Python 10.15. Error Handling 10.16. Putting It All Together 10.17. Code Review 11. Lab 1 - Expressions and Statements 11.1. Echo 11.2. Dice Rolls 11.3. Is It Positive? 11.4. To Uppercase 11.5. Random Letters 11.6. Random Arithmetic 11.7. Can I Buy a Vowel? 11.8. All True or Not 11.9. Spade, Heart, Diamond, or Clubs 11.10. Random Suit 11.11. The Same Suit Or Not 11.12. Rock Paper Scissors Procedural Programming 12. Rock Paper Scissors - The Sequel 12.1. Python Modules 12.2. Python Packages 12.3. Tuple Unpacking 12.4. Function Definitions 12.5. Function def with Type Annotations 12.6. Expression Statements 12.7. Doc Strings 12.8. Ellipsis (…) 12.9. random.choice() 12.10. Sequence Replication 12.11. f-String Expressions 12.12. Conditional Expressions 12.13. "States" 12.14. For Range Loop 12.15. While Loop 12.16. Error Handling 12.17. Putting It All Together 12.18. Code Review 13. Lab 2 - Functions, Loops, and More 13.1. Sum 13.2. Product 13.3. Filtered Sum 13.4. Singular vs Plural Nouns 13.5. Power Operator 13.6. Tuple Parameter 13.7. Reverse a List 13.8. Rock Paper Scissors 13.9. How Many Rounds? 13.10. Best of Seven Object Oriented Programming 14. Rock Paper Scissors - The Finale 14.1. Modules and Packages 14.2. Backslashes 14.3. Optional and Union Types 14.4. Boolean Context 14.5. Recursion 14.6. Object Oriented Programming (OOP) 14.7. Class 14.8. Class Objects 14.9. Constructors 14.10. Class Variables 14.11. Instance Objects 14.12. Instance Variables 14.13. Instance Methods 14.14. Private Members 14.15. Dunder Attributes 14.16. Inheritance 14.17. Polymorphism 14.18. Truth Values 14.19. Enum 14.20. Match Statement 14.21. Dictionary 14.22. Putting It All Together 14.23. Code Review 15. Lab 3 - OOP and Other Modern Features 15.1. Days of the Week 15.2. I’ll Be Going … 15.3. Playing Cards 15.4. Length Function 15.5. Sum Function 15.6. Product Function 15.7. String Length Comparison 15.8. String Concat Function 15.9. Multiplication Table 15.10. Fibonacci Sequence 15.11. Rock Paper Scissors Wrapping Up 16. Final Projects 16.1. Computer vs Computer 16.2. How to Prevent Cheating 16.3. Student Records 16.4. War (Card Game) 17. Epilog - Let’s Play! Credits About the Author Community Support
1. Disable the AdBlock plugin. Otherwise, you may not get any links.
2. Solve the CAPTCHA.
3. Click download link.
4. Lead to download server to download.