Learning Python : learn to code like a professional with Python--an open source, versatile, and powerful programming language /: learn to code like a professional with Python--an open source, versatile, and powerful programming language. (2015)
- Record Type:
- Book
- Title:
- Learning Python : learn to code like a professional with Python--an open source, versatile, and powerful programming language /: learn to code like a professional with Python--an open source, versatile, and powerful programming language. (2015)
- Main Title:
- Learning Python : learn to code like a professional with Python--an open source, versatile, and powerful programming language
- Further Information:
- Note: Fabrizio Romano.
- Authors:
- Romano, Fabrizio
- Contents:
- Cover ; Copyright; Credits; About the Author; Acknowledgements; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Introduction and First Steps -- Take a Deep Breath; A proper introduction; Enter the Python; About Python; Portability; Coherence; Developer productivity; An extensive library; Software quality; Software integration; Satisfaction and enjoyment; What are the drawbacks?; Who is using Python today?; Setting up the environment; Python 2 versus Python 3 -- the great debate; Installing Python; Setting up the Python interpreter; About virtualenv. Your first virtual environmentYour friend, the console; How you can run a Python program; Running Python scripts; Running the Python interactive shell; Running Python as a service; Running Python as a GUI application; How is Python code organized; How do we use modules and packages; Python's execution model; Names and namespaces; Scopes; Object and classes; Guidelines on how to write good code; The Python culture; A note on the IDEs; Summary; Chapter 2: Built-in Data Types; Everything is an object; Mutable or immutable? That is the question; Numbers; Integers; Booleans; Reals; Complex numbers. Fractions and decimalsImmutable sequences; Strings and bytes; Encoding and decoding strings; Indexing and slicing strings; Tuples; Mutable sequences; Lists; Byte arrays; Set types; Mapping types -- dictionaries; The collections module; Named tuples; Defaultdict; ChainMap; Final considerations; Small valuesCover ; Copyright; Credits; About the Author; Acknowledgements; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Introduction and First Steps -- Take a Deep Breath; A proper introduction; Enter the Python; About Python; Portability; Coherence; Developer productivity; An extensive library; Software quality; Software integration; Satisfaction and enjoyment; What are the drawbacks?; Who is using Python today?; Setting up the environment; Python 2 versus Python 3 -- the great debate; Installing Python; Setting up the Python interpreter; About virtualenv. Your first virtual environmentYour friend, the console; How you can run a Python program; Running Python scripts; Running the Python interactive shell; Running Python as a service; Running Python as a GUI application; How is Python code organized; How do we use modules and packages; Python's execution model; Names and namespaces; Scopes; Object and classes; Guidelines on how to write good code; The Python culture; A note on the IDEs; Summary; Chapter 2: Built-in Data Types; Everything is an object; Mutable or immutable? That is the question; Numbers; Integers; Booleans; Reals; Complex numbers. Fractions and decimalsImmutable sequences; Strings and bytes; Encoding and decoding strings; Indexing and slicing strings; Tuples; Mutable sequences; Lists; Byte arrays; Set types; Mapping types -- dictionaries; The collections module; Named tuples; Defaultdict; ChainMap; Final considerations; Small values caching; How to choose data structures; About indexing and slicing; About the names; Summary; Chapter 3: Iterating and Making Decisions; Conditional programming; A specialized else: elif; The ternary operator; Looping; The for loop; Iterating over a range; Iterating over a sequence. Iterators and iterablesIterating over multiple sequences; The while loop; The break and continue statements; A special else clause; Putting this all together; Example 1 -- a prime generator; Example 2 -- applying discounts; A quick peek at the itertools module; Infinite iterators; Iterators terminating on the shortest input sequence; Combinatoric generators; Summary; Chapter 4: Functions, the Building Blocks of Code; Why use functions?; Reduce code duplication; Splitting a complex task; Hide implementation details; Improve readability; Improve traceability; Scopes and name resolution. The global and nonlocal statementsInput parameters; Argument passing; Assignment to argument names don't affect the caller; Changing a mutable affects the caller; How to specify input parameters; Positional arguments; Keyword arguments and default values; Variable positional arguments; Variable keyword arguments; Keyword-only arguments; Combining input parameters; Avoid the trap! Mutable defaults; Return values; Returning multiple values; A few useful tips; Recursive functions; Anonymous functions; Function attributes; Built-in functions; One final example; Documenting your code. … (more)
- Publisher Details:
- Birmingham : Packt Publishing
- Publication Date:
- 2015
- Extent:
- 1 online resource, illustrations
- Subjects:
- 005.133
COMPUTERS -- Software Development & Engineering -- Quality Assurance & Testing
Python (Computer program language)
COMPUTERS / Programming Languages / Python
Python (Computer program language)
COMPUTERS -- Software Development & Engineering -- Project Management
Electronic books - Languages:
- English
- ISBNs:
- 9781785284571
1785284576
1783551712
9781783551712 - Related ISBNs:
- 9781783551712
1783551712 - Notes:
- Note: Description based on online resource; title from cover (viewed January 15, 2016).
- Access Rights:
- Legal Deposit; Only available on premises controlled by the deposit library and to one user at any one time; The Legal Deposit Libraries (Non-Print Works) Regulations (UK).
- Access Usage:
- Restricted: Printing from this resource is governed by The Legal Deposit Libraries (Non-Print Works) Regulations (UK) and UK copyright law currently in force.
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library HMNTS - ELD.DS.88567
- Ingest File:
- 01_052.xml