Librería Portfolio Librería Portfolio

Búsqueda avanzada

TIENE EN SU CESTA DE LA COMPRA

0 productos

en total 0,00 €

INTRODUCING PYTHON 2E
Título:
INTRODUCING PYTHON 2E
Subtítulo:
Autor:
LUBANOVIC, B
Editorial:
O´REILLY
Año de edición:
2019
Materia
OTROS LENGUAJES
ISBN:
978-1-4920-5136-7
Páginas:
597
54,95 €

 

Sinopsis

Easy to understand and fun to read, this updated edition of Introducing Python is ideal for beginning programmers as well as those new to the language. Author Bill Lubanovic takes you from the basics to more involved and varied topics, mixing tutorials with cookbook-style code recipes to explain concepts in Python 3. End-of-chapter exercises help you practice what you've learned.

You'll gain a strong foundation in the language, including best practices for testing, debugging, code reuse, and other development tips. This book also shows you how to use Python for applications in business, science, and the arts, using various Python tools and open source packages.



Table of contents

Preface
Audience
Changes in the Second Edition
Outline
Python Versions
Conventions Used in This Book
Using Code Examples
O'Reilly Online Learning
How to Contact Us
Acknowledgments
I. Python Basics
1. A Taste of Py
Mysteries
Little Programs
A Bigger Program
Python in the Real World
Python Versus the Language from Planet X
Why Python?
Why Not Python?
Python 2 Versus Python 3
Installing Python
Running Python
Using the Interactive Interpreter
Using Python Files
What's Next?
Your Moment of Zen
Coming Up
Things to Do
2. Data: Types, Values, Variables, and Names
Python Data Are Objects
Types
Mutability
Literal Values
Variables
Assignment
Variables Are Names, Not Places
Assigning to Multiple Names
Reassigning a Name
Copying
Choose Good Variable Names
Coming Up
Things to Do
3. Numbers
Booleans
Integers
Literal Integers
Integer Operations
Integers and Variables
Precedence
Bases
Type Conversions
How Big Is an int?
Floats
Math Functions
Coming Up
Things to Do
4. Choose with if
Comment with #
Continue Lines with Compare with if, elif, and else
What Is True?
Do Multiple Comparisons with in
New: I Am the Walrus
Coming Up
Things to Do
5. Text Strings
Create with Quotes
Create with str()
Escape with Combine by Using +
Duplicate with *
Get a Character with []
Get a Substring with a Slice
Get Length with len()
Split with split()
Combine by Using join()
Substitute by Using replace()
Strip with strip()
Search and Select
Case
Alignment
Formatting
Old style: %
New style: {} and format()
Newest Style: f-strings
More String Things
Coming Up
Things to Do
6. Loop with while and for
Repeat with while
Cancel with break
Skip Ahead with continue
Check break Use with else
Iterate with for and in
Cancel with break
Skip with continue
Check break Use with else
Generate Number Sequences with range()
Other Iterators
Coming Up
Things to Do
7. Tuples and Lists
Tuples
Create with Commas and ()
Create with tuple()
Combine Tuples by Using +
Duplicate Items with *
Compare Tuples
Iterate with for and in
Modify a Tuple
Lists
Create with []
Create or Convert with list()
Create from a String with split()
Get an Item by [ offset ]
Get Items with a Slice
Add an Item to the End with append()
Add an Item by Offset with insert()
Duplicate All Items with *
Combine Lists by Using extend() or +
Change an Item by [ offset ]
Change Items with a Slice
Delete an Item by Offset with del
Delete an Item by Value with remove()
Get an Item by Offset and Delete It with pop()
Delete All Items with clear()
Find an Item's Offset by Value with index()
Test for a Value with in
Count Occurrences of a Value with count()
Convert a List to a String with join()
Reorder Items with sort() or sorted()
Get Length with len()
Assign with =
Copy with copy(), list(), or a Slice
Copy Everything with deepcopy()
Compare Lists
Iterate with for and in
Iterate Multiple Sequences with zip()
Create a List with a Comprehension
Lists of Lists
Tuples Versus Lists
There Are No Tuple Comprehensions
Coming Up
Things to Do
8. Dictionaries and Sets
Dictionaries
Create with {}
Create with dict()
Convert with dict()
Add or Change an Item by [ key ]
Get an Item by [key] or with get()
Get All Keys with keys()
Get All Values with values()
Get All Key-Value Pairs with items()
Get Length with len()
Combine Dictionaries with {**a, **b}
Combine Dictionaries with update()
Delete an Item by Key with del
Get an Item by Key and Delete It with pop()
Delete All Items with clear()
Test for a Key with in
Assign with =
Copy with copy()
Copy Everything with deepcopy()
Compare Dictionaries
Iterate with for and in
Dictionary Comprehensions
Sets
Create with set()
Convert with set()
Get Length with len()
Add an Item with add()
Delete an Item with remove()
Iterate with for and in
Test for a Value with in
Combinations and Operators
Set Comprehensions
Create an Immutable Set with frozenset()
Data Structures So Far
Make Bigger Data Structures
Coming Up
Things to Do
9. Functions
Define a Function with def
Call a Function with Parentheses
Arguments and Parameters
None Is Useful
Positional Arguments
Keyword Arguments
Specify Default Parameter Values
Explode/Gather Positional Arguments with *
Explode/Gather Keyword Arguments with **
Keyword-Only Arguments
Mutable and Im