Description
Book SynopsisExplore the world of programming languages through Python and learn the building blocks of writing programs. This book covers Python 3.10, explaining it through six key concepts. Each chapter contains a real-world example with practical advice and a section on advanced concepts.
You''ll start by reviewing the concept of expressions and functions, which are two of the core building blocks of programming languages. You''ll then move on to object-oriented concepts to help gain a practical understanding of Python, along with a chapter on control flow constructs. The book also takes a close look at sequences, explaining constructs and additional types, and wraps up with a chapter on modules, focusing on how to use and create packages.
Whether you''re new to programming or already an experienced developer, upon finishing this book, you will have a solid understanding of Python''s state-of-the-art development features.
What
Table of Contents
Chapter 1: Expression- Explains expression as the first key concept of a programming language.1.1. What is an expression?1.2. Expressions containing different types1.3. Variable names1.4. Statements1.5. Deleting variable names1.6. Further language constructs1.7. Expressions and statements in practice1.8. References:
Chapter 2: Function- Explains function as the second most important building block.2.1. What is a function?2.2. Calling functions2.3. Functions with side effects2.4. Function parameters2.5. Defining functions2.6. Referencing to variable and function names2.7. Function as parameter2.8. Embedded function definitions2.9. Function in practice2.10. References
Chapter 3: Class- Explains object-oriented concepts as everything is an object in Python.3.1. What is object-oriented programming?3.2. What is a class?3.3. Creating objects3.4. Using attributes and methods3.5. Defining classes3.6. Connection between classes3.7. Properties3.8. Inheritance3.9. Embedded classes3.10. Special methods3.11. Classes in practice3.12. References
Chapter 4. Control flow- Explains what control flow constructs and everything related to it (exceptions, recursion, etc.)4.1. What is control flow?4.2. Conditional statement4.3. Condition-controlled loops4.4. Count-controlled loops4.5. Exception handling4.6. Context management4.7. References
Chapter 5: Sequence- Explains the list like constructs and additional container types.5.1. What is a sequence?5.2. List and its operations5.3. List comprehension5.4. Tuples 5.5. Dictionaries5.6. Sets5.7. References
Chapter 6: Module- Explains how to use and create packages.6.1. What is a module?6.2. Built-in modules6.3. Create your own modules6.4. Packages6.5. Package management6.6. Interesting third party packages6.7. References