Head first Python /
What will you learn from this book? 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 by working with built-in data structures and functions. You'll build your very own web app, which-...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Sebastopol, CA :
O'Reilly Media,
2023.
|
Edición: | Third edition. |
Colección: | Head first series.
|
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- Cover
- Copyright
- Table of Contents
- Other books in O'Reilly's Head First series
- Author of Head First Python
- Table of Contents (the real thing)
- How to use this Book: Intro
- Who is this book for?
- Who should probably back away from this book?
- We know what you're thinking
- We know what your brain is thinking
- Metacognition: thinking about thinking
- Here's what WE did:
- Read Me
- Let's install the latest Python
- Installing on Windows
- Installing on macOS
- Installing on Linux
- Python on its own is not enough
- Install the latest Jupyter Notebook backend
- Install the latest release of VS Code
- Configure VS Code to your taste
- Add two required extensions to VS Code
- VS Code's Python support is state-of-the-art
- The Technical Review Team
- Acknowledgments
- Chapter 1. Why Python?: Similar but Different
- Getting ready to run some code
- Preparing for your first Jupyter experience
- Let's pop some code into your notebook editor
- Press Shift+Enter to run your code
- So... Python code really is easy to read... and run
- What if you want more than one card?
- Take a closer look at the card drawing code
- The Big 4: list, tuple, dictionary, and set
- Model your deck of cards with a set
- The print dir combo mambo
- Getting help with dir's output
- Populate the set with cards
- This feels like a deck of cards now
- What exactly is "card"?
- Need to find something?
- Let's pause and take stock
- Python ships with a rich standard library
- With Python you'll only write the code you need
- Python's package ecosystem is to die for
- Just when you thought you were done...
- Chapter 2. Diving in: Let's Make a Splash
- How is the Coach working right now?
- The Coach needs a more capable stopwatch
- Cubicle Conversation
- The file and the spreadsheet are "related"
- Our first task: Extract the filename's data
- Everything is an object in Python
- A string is an object with attributes
- Take a moment to appreciate what you're looking at here
- Extract the swimmer's data from the filename
- Don't try to guess what a method does...
- Splitting (aka, breaking apart) a string
- There's still some work to do
- Read error messages from the bottom up
- Be careful when combining method calls
- Cubicle Conversation
- Let's try another string method
- All that remains is to create some variables
- Multiple assignment (aka unpacking)
- Task #1 is done!
- Task #2: Process the data in the file
- Chapter 3. Lists of Numbers: Processing List Data
- Task #2: Process the data in the file
- Grab a copy of the Coach's data
- The open BIF works with files
- Cubicle Conversation
- Using with to open (and close) a file
- Variables are created dynamically, as needed
- The file's data is what you really want
- We have the swimmer's data from the file
- Let's take stock of our progress so far