Python for Absolute Beginners: A Practical Introduction to Modern Python with Simple Hands-on Projects
- Length: 417 pages
- Edition: 1
- Language: English
- Publisher: Coding Books Press
- Publication Date: 2021-11-17
- ISBN-10: B09M7P9WCZ
- Sales Rank: #0 (See Top 100 Books)
Python Programming Basics for Beginners
Wanna learn programming? Wanna learn Python? Start from this book!
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 interested in learning programming for the first time. This book covers all the essential features of Modern Python (Python 3.10) through 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. The book covers all the key concepts of Python 3 with the 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:
- The basic structure of a Python program.
- Basic constructs of Python such as expressions and statements.
- Simple builtin data types, e.g., as integer, float, bool, and string.
- Complex builtin data types, e.g., list, tuple, and dictionary.
- Builtin functions and methods, e.g., print, input, type, etc.
- Arithmetic and comparison operations.
- Variables and assignments.
- Loops using `for` and `while`.
- Conditional expressions and conditional statements.
- The new `match` statement. (New as of 3.10.)
- 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.
- Basic concepts of recursion.
Order your copy today!
Note: This book uses the rock paper scissors game as our example project to cover the basics of programming in Python. We deliberately picked one of the simplest problems so that we can focus on learning programming, and not the other way around. The book primarily uses CLI (terminal programs), not IDEs, to illustrate the software development practice.
Copyright Preface About This Series Target Audience Community Support Introduction Modern Python Book Organizations 1. Prolog - Let’s Get Started 2. Hello Monty Python 2.1. The First Step 2.2. "The Project" 3. Development Environment Setup 3.1. Command Line Interface (CLI) 3.2. Python Installation 3.3. Visual Studio Code 3.4. Python Extension 3.5. Test Program 3.6. How to Run Python Programs 3.7. Code Review 3.8. Type Annotations 3.9. Summary 4. Interactive Tour of Python 4.1. Python REPL 4.2. Basic Concepts of Programing 4.3. Summary 5. Numbers, Strings, and More 5.1. Starting Python Interactive Session 5.2. Numbers in Python 5.3. Builtin type Function 5.4. Errors 5.5. Expressions 5.6. Interactive vs Non-Interactive Modes 5.7. Builtin print Function 5.8. None 5.9. Boolean Expression 5.10. Dynamic Typing 5.11. Builtin bool Function 5.12. Simple and Compound Statements 5.13. Conditional Statement 5.14. Strings in Python 5.15. String Concatenations 5.16. Ending Python Interactive Session 5.17. Summary 6. Tuples, Lists, and Some Inspirations 6.1. Complex Types 6.2. Tuple Literals 6.3. Expression List 6.4. Tuple Type 6.5. List Literals 6.6. List Operations 6.7. "Names" in Python 6.8. Assignment 6.9. Slicing 6.10. Sorting 6.11. Help!! 6.12. Inspirations 6.13. Summary 7. Review - Basics 7.1. Questions 7.2. Exercises 7.3. Interlude 8. Hello Rock Paper Scissors! 8.1. Working on a Project 8.2. Let’s Play Rock Paper Scissors 9. Software Design 9.1. Deconstructing Rock Paper Scissors 9.2. Tasks 10. Project Setup 10.1. Workspace 10.2. Virtual Environment 10.3. Package Install 10.4. Source Control System 11. Main Project - Rock Paper Scissors 11.1. Rock Paper Scissors 11.2. Import Statement 11.3. Function Definition 11.4. Comparison Operators 11.5. The if Statement 11.6. Builtin input() Function 11.7. Variables/Names 11.8. Rules on Names 11.9. Naming Conventions 11.10. Scope 11.11. String methods 11.12. The Random Module 11.13. Boolean Operators 11.14. Lines in Python 11.15. Error Handling 11.16. Putting It All Together 11.17. Code Review 12. Lab 1 - Expressions and Statements 12.1. Echo 12.2. Dice Rolls 12.3. Is It Positive? 12.4. To Uppercase 12.5. Random Letters 12.6. Random Arithmetic 12.7. Can I Buy a Vowel? 12.8. All True or Not 12.9. Spade, Heart, Diamond, or Clubs 12.10. Random Suit 12.11. The Same Suit Or Not 12.12. Rock Paper Scissors 13. Rock Paper Scissors - The Sequel 13.1. Python Modules 13.2. Python Packages 13.3. Tuple Unpacking 13.4. Function Definitions 13.5. Function Definitions with Type Annotations 13.6. Expression Statements 13.7. Doc Strings 13.8. Ellipsis (…) 13.9. random.choice() 13.10. Sequence Multiplication 13.11. f-String Expression 13.12. Conditional Expression 13.13. States 13.14. For Range Loop 13.15. While Loop 13.16. Error Handling 13.17. Putting It All Together 13.18. Code Review 14. Lab 2 - Functions, Loops, and More 14.1. Sum 14.2. Product 14.3. Filtered Sum 14.4. Singular vs Plural Nouns 14.5. Power Operator 14.6. Tuple Parameter 14.7. Reverse a List 14.8. Rock Paper Scissors 14.9. How Many Rounds? 14.10. Best of Seven 15. Rock Paper Scissors - The Finale 15.1. Modules and Packages 15.2. Backslashes 15.3. Optional and Union Types 15.4. Boolean Context 15.5. Recursion 15.6. Object Oriented Programming (OOP) 15.7. Class 15.8. Class Objects 15.9. Constructors 15.10. Class Variables 15.11. Instance Objects 15.12. Instance Variables 15.13. Method Objects 15.14. Private Members 15.15. Dunder Attributes 15.16. Inheritance 15.17. Polymorphism 15.18. Truth Values 15.19. Enum 15.20. Match statement 15.21. Dictionary 15.22. Putting It All Together 15.23. Code Review 16. Lab 3 - OOP and Other Modern Features 16.1. Days of the Week 16.2. I’ll Be Going … 16.3. Playing Cards 16.4. Length Function 16.5. Sum Function 16.6. Product Function 16.7. String Length Comparison 16.8. String Concat Function 16.9. Multiplication Table 16.10. Fibonacci Sequence 16.11. Rock Paper Scissors 17. Final Projects 17.1. Computer vs Computer 17.2. How to Prevent Cheating 17.3. Student Records 17.4. War (Card Game) 18. Epilog - Let’s Play! Credits Request for Feedback About the Author
Donate to keep this site alive
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.