Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: Lee Vaughan

Rating No ratings yet

Program Python like a professional With its emphasis on project-based practice, Real World Python will take you from playing with syntax to writing complete programs in no time. You'll conduct experiments, explore statistical concepts, and solve novel problems that have frustrated geniuses throughout history, like detecting distant exoplanets, as you continue to build your Python skills. Chapters begin with a clearly defined project goal and a discussion of ways to attack the problem, followed by a mission designed to make you think like a programmer. You'll direct a Coast Guard search-and-rescue effort, plot and execute a NASA flight to the moon, protect access to a secure lab using facial recognition, and more. Along the way you'll learn how to: • Use libraries like matplotlib, NumPy, Bokeh, pandas, Requests, Beautiful Soup, and turtle • Work with Natural Language Processing and computer vision modules like NLTK and OpenCV • Write a program to detect and track objects moving across a starfield • Scrape speeches from the internet and autosummarize them • Use the Mars Orbiter Laser Altimeter (MOLA) map to select spacecraft landing sites • Survive a zombie apocalypse with the aid of data-plotting and visualization tools The book's programs are beginner-friendly, but as you progress you'll learn more sophisticated techniques to help you grow your coding capabilities. Once your missions are accomplished, you'll be ready to solve real-world problems with Python on your own.

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

Brief outline
【One-Line Pitch】 Program Python like a professional With its emphasis on project-based practice, Real World Python will take you from… 【Book Arc】 - **Opening (~0%–12%)**: Once your missions are accomplished, you'll be ready to solve real-world problems with Python on your own.; 24 Challenge Project: Smarter Searches . - **Early (~12%–35%)**: The kitchen is now the most likely place to look, but the probability for the other rooms increases as well.; ave a class that builds battleships in a World War II game. - **Middle (~35%–65%)**: ch a POS tag to each word (see Table 2-2).; The “I Have a Dream” Code The dream_summary.py program performs the following steps: 1. - **Late (~65%–88%)**: some and requires you to use functionality from across the Standard Library.; For the source points, use the queryIdx.pt attribute to get the index of the descriptor in the list of descriptors for kp1. - **Ending (~88%–100%)**: ar, leaving the command module to complete the voyage home.; using the gravsys object’s sim_loop() method. 【Key Takeaways】 - **Once your missions are…** (Opening): Once your missions are accomplished, you'll be ready to solve real-world problems with Python on your own. - **24 Challenge Project** (Opening): 24 Challenge Project: Smarter Searches . - **48 Practice Project** (Opening): 48 Practice Project: Hunting the Hound with Dispersion . - **The kitchen is now the…** (Early): The kitchen is now the most likely place to look, but the probability for the other rooms increases as well. - **ave a class that build…** (Early): ave a class that builds battleships in a World War II game. - **s, which the player wi…** (Early): s, which the player will use to guide their next search . 【Reading Tips】 - Use Passage locations below to jump into the text and set reading anchors - If this is a brief outline, click Regenerate (top right) for a synthesized guide 【Coverage Limits】 Compressed outline without the model (~33 index chunks). Full structured guide needs AI available.
Page 13
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xx Why Python? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....
View in text
Excerpt 2
ave a class that builds battleships in a World War II game. Each battleship would inherit certain consistent characteristics, such as tonnage, cruising speed...
View in text
Excerpt 3
words A frequency distribution plot of stop words (short, noncontextual function words like the, but, and if) 28 Chapter 2 Table 2-1: Length (Word Count) of...
View in text
Excerpt 4
res so you don’t bias the results toward longer sen- tences. After all, longer sentences are more likely to have a greater number of important words. To avoi...
View in text
Excerpt 5
hen the loop ends, you return the list to end the function. To see how this works, let’s look at the first message the Nazi spy sends in The Key to Rebecca,...
View in text
Excerpt 6
width - pad and pad < maxLoc[1] < height - pad: cv.circle(image, maxLoc, 10, 255, 0) transient = True return transient, maxLoc Listing 5-9: Defining a functi...
View in text
Excerpt 7
ting the CSM from the list of bodies . In the main() func- tion, you’ll create the bodies in order of size, so the CSM will be the third item in the list, at...
View in text
Excerpt 8
inal step that shifts the rectan- gle by one-half its width. Otherwise, you would need to add code that wraps a rectangle from one side of the image to the o...
View in text
Tags
AI categories
Python
python
Publisher: No Starch Press
Publish Year: 2021
Language: English
Pages: 362
File Format: PDF
File Size: 13.5 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…