Librería Portfolio Librería Portfolio

Búsqueda avanzada

TIENE EN SU CESTA DE LA COMPRA

0 productos

en total 0,00 €

HEAD FIRST PYTHON 2E
Título:
HEAD FIRST PYTHON 2E
Subtítulo:
Autor:
BARRY, P
Editorial:
O´REILLY
Año de edición:
2017
Materia
UNIX
ISBN:
978-1-4919-1953-8
Páginas:
624
48,95 €

 

Sinopsis

Want to learn the Python language without slogging your way through how-to manuals? With Head First Python, you'll quickly grasp Python's fundamentals, working with the built-in data structures and functions. Then you'll move on to building your very own webapp, exploring database management, exception handling, and data wrangling. If you're intrigued by what you can do with context managers, decorators, comprehensions, and generators, it's all here. This second edition is a complete learning experience that will help you become a bonafide Python programmer in no time.

Why does this book look so different? Based on the latest research in cognitive science and learning theory, Head First Pythonuses a visually rich format to engage your mind, rather than a text-heavy approach that puts you to sleep. Why waste your time struggling with new concepts? This multi-sensory learning experience is designed for the way your brain really works.



Chapter 1The Basics: Getting Started Quickly
Breaking with Tradition
Jump Right In
Understanding IDLE's Windows
What Happens Next...
Press F5 to Run Your Code
Code Runs Immediately
Executing Code, One Statement at a Time
Functions + Modules = The Standard Library
Batteries Included
Data Structures Come Built-in
Invoking Methods Obtains Results
Deciding When to Run Blocks of Code
What Happened to My Curly Braces?
What "elseö Can You Have with "ifö?
Suites Can Contain Embedded Suites
What We Already Know
Extending Our Program to Do More
What's the Best Approach to Solving This Problem?
Returning to the Python Shell
Experimenting at the Shell
Iterating Over a Sequence of Objects
Iterating a Specific Number of Times
Applying the Outcome of Task #1 to Our Code
Indent Suites with Format...Indent Region
Arranging to Pause Execution
Importation Confusion
Generating Random Integers with Python
Asking the Interpreter for Help
Reviewing Our Experiments
Updating What We Already Know
A Few Lines of Code Do a Lot
Coding a Serious Business Application
Python Code Is Easy to Read
Is Indentation Driving You Crazy?
Asking the Interpreter for Help on a Function
Experimenting with Ranges
Don't Forget to Try the Beer Song Code
Chapter 1's Programs
Chapter 2List Data: Working With Ordered Data
Numbers, Strings... and Objects
"Everything is an Objectö
Meet the Four Built-in Data Structures
Ordered Collections are Mutable/Immutable
An Unordered Data Structure: Dictionary
A Data Structure Which Avoids Duplicates: Set
A List is an Ordered Collection of Objects
Creating Lists Literally
Putting Lists to Work
Use Your Editor When Working on More Than a Few Lines of Code
"Growingö A List At Run-Time
Checking For Membership with "inö
It's Time to Update Our Code
Removing Objects From a List
Popping Objects Off a List
Extending a List with Objects
Inserting an Object Into a List
What About Using Square Brackets?
What Happened to "plistö?
What Happened to "plistö, Continued?
Lists: What We Know
What Looks Like A Copy, Isn't
How To Copy A Data Structure
Square Brackets Are Everywhere
Lists Extend The Square Bracket Notation
Lists Understand Start, Stop, And Step
List Slices In Action
Starting, And Stopping With Lists
Stepping With Lists
Putting Slices To Work On Lists
Putting Slices To Work On Lists, Continued
Which is better? It depends...
Slicing A List Is Non-destructive
Python's "forö Loop Understands Lists
Python's "forö Loop Understands Slices
Marvin's Slices In Detail
Lists: Updating What We Know
What's Wrong With Lists?
When Not To Use Lists
Chapter 2's Programs
Chapter 2's Programs, Continued
Chapter 3Structured Data: Working With Structured Data
A Dictionary Stores Key/Value Pairs
Make Dictionaries Easy to Read
How to Spot a Dictionary in Code
Insertion Order is NOT Maintained
Value Lookup With Square Brackets
Working With Dictionaries At Run-Time
Recap: Displaying Found Vowels (Lists)
How Can A Dictionary Help Here?
Selecting A Frequency Count Data Structure
Updating A Frequency Counter
Updating A Frequency Counter, v2.0
Iterating Over A Dictionary
Iterating Over Keys And Values
Dictionaries: What We Already Know
Iterating Over A Dictionary With "itemsö
Just How Dynamic Are Dictionaries?
Avoiding KeyErrors At Run-Time
Checking For Membership With "inö
Ensuring Initialization Before Use
Substituting "not inö For "inö
Putting The "setdefaultö Method To Work
Aren't Dictionaries (And Lists) Enough?
Sets Don't Allow Duplicates
Creating Sets Efficiently
Taking Advantage Of Set Methods
Union Works By Combining Sets
Difference Tells You What's Not Shared
Intersection Reports On Commonality
Sets: What You Already Know
Making The Case For Tuples
Tuples Are Immutable
Watch Out For Single-Object Tuples
Combining The Built-in Data Structures
Storing A Table Of Data
A Dictionary Containing a Dictionary
A Dictionary of Dictionaries (a.k.a. A Table)
Pretty Printing Complex Data Structures
Visualizing Complex Data Structures
Accessing A Complex Data Structure's Data
Data Is As Complex As You Make It
Chapter 3's Programs (1 of 2)
Chapter 3's Programs (2 of 2)
Chapter 4Code Reuse: Functions & Modules
Reusing Code With Functions
Introducing Functions
What About Type Information?
Naming A Chunk Of Code With "defö
Invoking Your Function
Use IDLE's Editor To Make Changes
What's The Deal With All Those Strings?
Follow Best Practice As Per The PEPs
Functions Can Accept Arguments
Functions Return A Result
Returning One Value
Returning More Than One Value
Recalling The Built-in Data Structures
Use Annotations To Improve Your Docs
Why Use Function Annotations?
Functions: What We Know Already
Making A Generically Useful Function
Creating Another Function, 1 of 3
Creating Another Function, 2 of 3
Creating Another Function, 3 of 3
Specifying Default Values For Arguments
Positional vs. Keyword Assignment
Updating What We Know About Functions
Functions Beget Modules
How Are Modules Found?
Running Python From The Command-Line
Not Found Modules Produce ImportErrors
ImportErrors Occur No Matter The Platform
Getting A Module Into Site-packages
Creating The Required Setup Files
Creating The Distribution File
Distribution Files On UNIX-like OSes
Installing Packages With "pipö
Modules: What We Know Already
Demonstrating Call-By-Value Semantics
Demonstrating Call-By-Reference Semantics
Can I Test For PEP 8 Compliance?
Getting Ready To Check PEP 8 Compliance
Install The Testing Developer Tools
How PEP 8 Compliant Is Our Code?
Understanding The Failure Messages
Confirming PEP 8 Compliance
Chapter 4's Programs
Chapter 5Building a Webapp: Getting Real
Python: What You Already Know
Let's Build Something
What Do We Want Our Webapp To Do?
What Happens On The Web Server?
Let's Install Flask
How Does Flask Work?
Running Your Flask Webapp For The First Time
Here's What Happened (Line-By-Line)
Creating A Flask Webapp Object
Deco