Book description
Learn to code like a professional with Python – an open source, versatile, and powerful programming language
Key Features
- Learn the fundamentals of programming with Python – one of the best languages ever created
- Develop a strong set of programming skills that you will be able to express in any situation, on every platform, thanks to Python’s portability
- Create outstanding applications of all kind, from websites to scripting, and from GUIs to data science
Book Description
Learning Python has a dynamic and varied nature. It reads easily and lays a good foundation for those who are interested in digging deeper. It has a practical and example-oriented approach through which both the introductory and the advanced topics are explained. Starting with the fundamentals of programming and Python, it ends by exploring very different topics, like GUIs, web apps and data science. The book takes you all the way to creating a fully fledged application.
The book begins by exploring the essentials of programming, data structures and teaches you how to manipulate them. It then moves on to controlling the flow of a program and writing reusable and error proof code. You will then explore different programming paradigms that will allow you to find the best approach to any situation, and also learn how to perform performance optimization as well as effective debugging. Throughout, the book steers you through the various types of applications, and it concludes with a complete mini website built upon all the concepts that you learned.
What you will learn
- Get Python up and running on Windows, Mac, and Linux in no time
- Grasp the fundamental concepts of coding, along with the basics of data structures and control flow.
- Write elegant, reusable, and efficient code in any situation
- Understand when to use the functional or the object oriented programming approach
- Create bulletproof, reliable software by writing tests to support your code
- Explore examples of GUIs, scripting, data science and web applications
- Learn to be independent, capable of fetching any resource you need, as well as dig deeper
Who this book is for
Python is the most popular introductory teaching language in U.S. top computer science universities, so if you are new to software development, or maybe you have little experience, and would like to start off on the right foot, then this language and this book are what you need. Its amazing design and portability will help you become productive regardless of the environment you choose to work with.
Table of contents
-
Learning Python
- Table of Contents
- Learning Python
- Credits
- About the Author
- Acknowledgements
- About the Reviewers
- www.PacktPub.com
- Preface
-
1. Introduction and First Steps – Take a Deep Breath
- A proper introduction
- Enter the Python
- About Python
- What are the drawbacks?
- Who is using Python today?
- Setting up the environment
- Installing Python
- How you can run a Python program
- How is Python code organized
- Python's execution model
- Guidelines on how to write good code
- The Python culture
- A note on the IDEs
- Summary
- 2. Built-in Data Types
- 3. Iterating and Making Decisions
-
4. Functions, the Building Blocks of Code
- Why use functions?
- Scopes and name resolution
- Input parameters
- Return values
- A few useful tips
- Recursive functions
- Anonymous functions
- Function attributes
- Built-in functions
- One final example
- Documenting your code
- Importing objects
- Summary
- 5. Saving Time and Memory
-
6. Advanced Concepts – OOP, Decorators, and Iterators
- Decorators
-
Object-oriented programming
- The simplest Python class
- Class and object namespaces
- Attribute shadowing
- I, me, and myself – using the self variable
- Initializing an instance
- OOP is about code reuse
- Accessing a base class
- Multiple inheritance
- Static and class methods
- Private methods and name mangling
- The property decorator
- Operator overloading
- Polymorphism – a brief overview
- Writing a custom iterator
- Summary
- 7. Testing, Profiling, and Dealing with Exceptions
- 8. The Edges – GUIs and Scripts
- 9. Data Science
- 10. Web Development Done Right
- 11. Debugging and Troubleshooting
- 12. Summing Up – A Complete Example
- Index
Product information
- Title: Learning Python
- Author(s):
- Release date: December 2015
- Publisher(s): Packt Publishing
- ISBN: 9781783551712
You might also like
book
Learning Python
Learning Python is an introduction to the increasingly popular Python programming language. Python is an interpreted, …
book
Getting Started with Python
Harness the power of Python objects and data structures to implement algorithms for analyzing your data …
book
Advanced Python Programming
Create distributed applications with clever design patterns to solve complex problems Key Features Set up and …
book
Programming Python, 4th Edition
If you've mastered Python's fundamentals, you're ready to start using it to get real work done. …