100% found this document useful (3 votes)
2K views

Python Crash Course 3rd Edition Eric Matthes instant download

The document provides links to download the 'Python Crash Course, 3rd Edition' by Eric Matthes and other related ebooks. It includes a detailed table of contents outlining various chapters covering Python programming basics, data types, lists, functions, classes, and file handling. Additionally, it features exercises and resources to enhance learning and understanding of Python.

Uploaded by

chemladombek
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (3 votes)
2K views

Python Crash Course 3rd Edition Eric Matthes instant download

The document provides links to download the 'Python Crash Course, 3rd Edition' by Eric Matthes and other related ebooks. It includes a detailed table of contents outlining various chapters covering Python programming basics, data types, lists, functions, classes, and file handling. Additionally, it features exercises and resources to enhance learning and understanding of Python.

Uploaded by

chemladombek
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 55

Python Crash Course 3rd Edition Eric Matthes pdf

download

https://ebookmeta.com/product/python-crash-course-3rd-edition-
eric-matthes-2/

Download more ebook from https://ebookmeta.com


We believe these products will be a great fit for you. Click
the link to download now, or visit ebookmeta.com
to discover even more!

Python Crash Course, 3rd Edition Eric Matthes

https://ebookmeta.com/product/python-crash-course-3rd-edition-
eric-matthes-4/

Python Crash Course 3rd Edition Eric Matthes

https://ebookmeta.com/product/python-crash-course-3rd-edition-
eric-matthes-3/

Python Crash Course 3rd Edition Eric Matthes

https://ebookmeta.com/product/python-crash-course-3rd-edition-
eric-matthes-5/

Modeling and Simulation of Environmental Systems: A


Computation Approach 1st Edition Satya Prakash Maurya
(Editor)

https://ebookmeta.com/product/modeling-and-simulation-of-
environmental-systems-a-computation-approach-1st-edition-satya-
prakash-maurya-editor/
Java Challenges: 100+ Proven Tasks that Will Prepare
You for Anything 1st Edition Michael Inden

https://ebookmeta.com/product/java-challenges-100-proven-tasks-
that-will-prepare-you-for-anything-1st-edition-michael-inden-2/

The Goodbye Summer 1st Edition Sarah Van Name

https://ebookmeta.com/product/the-goodbye-summer-1st-edition-
sarah-van-name/

Socioeconomic Impacts of High-Speed Rail Systems:


Proceedings of the 2nd International Workshop on High-
Speed Rail Socioeconomic Impacts, University of Naples
Federco II, Italy, 13–14 September 2022 1st Edition
Francesca Pagliara
https://ebookmeta.com/product/socioeconomic-impacts-of-high-
speed-rail-systems-proceedings-of-the-2nd-international-workshop-
on-high-speed-rail-socioeconomic-impacts-university-of-naples-
federco-ii-italy-13-14-septembe/

Malkah s Notebook A Journey into the Mystical Aleph Bet


Mira Z. Amiras

https://ebookmeta.com/product/malkah-s-notebook-a-journey-into-
the-mystical-aleph-bet-mira-z-amiras/

Politicians the Press and Propaganda Lord Northcliffe


and the Great War 1914 1919 1st Edition J. Lee Thompson

https://ebookmeta.com/product/politicians-the-press-and-
propaganda-lord-northcliffe-and-the-great-war-1914-1919-1st-
edition-j-lee-thompson/
Your Towns Cities In World War Two South Shields At War
1939 45 Craig Armstrong

https://ebookmeta.com/product/your-towns-cities-in-world-war-two-
south-shields-at-war-1939-45-craig-armstrong/
CONTENTS IN DETAIL

PRAISE FOR PYTHON CRASH COURSE

TITLE PAGE

COPYRIGHT

DEDICATION

ABOUT THE AUTHOR

PREFACE TO THE THIRD EDITION

ACKNOWLEDGMENTS

INTRODUCTION
Who Is This Book For?
What Can You Expect to Learn?
Online Resources
Why Python?

PART I: BASICS
CHAPTER 1: GETTING STARTED
Setting Up Your Programming Environment
Python Versions
Running Snippets of Python Code
About the VS Code Editor
Python on Different Operating Systems
Python on Windows
Python on macOS
Python on Linux
Running a Hello World Program
Installing the Python Extension for VS Code
Running hello_world.py
Troubleshooting
Running Python Programs from a Terminal
On Windows
On macOS and Linux
Exercise 1-1: python.org
Exercise 1-2: Hello World Typos
Exercise 1-3: Infinite Skills
Summary

CHAPTER 2: VARIABLES AND SIMPLE DATA TYPES


What Really Happens When You Run hello_world.py
Variables
Naming and Using Variables
Avoiding Name Errors When Using Variables
Variables Are Labels
Exercise 2-1: Simple Message
Exercise 2-2: Simple Messages
Strings
Changing Case in a String with Methods
Using Variables in Strings
Adding Whitespace to Strings with Tabs or Newlines
Stripping Whitespace
Removing Prefixes
Avoiding Syntax Errors with Strings
Exercise 2-3: Personal Message
Exercise 2-4: Name Cases
Exercise 2-5: Famous Quote
Exercise 2-6: Famous Quote 2
Exercise 2-7: Stripping Names
Exercise 2-8: File Extensions
Numbers
Integers
Floats
Integers and Floats
Underscores in Numbers
Multiple Assignment
Constants
Exercise 2-9: Number Eight
Exercise 2-10: Favorite Number
Comments
How Do You Write Comments?
What Kinds of Comments Should You Write?
Exercise 2-11: Adding Comments
The Zen of Python
Exercise 2-12: Zen of Python
Summary

CHAPTER 3: INTRODUCING LISTS


What Is a List?
Accessing Elements in a List
Index Positions Start at 0, Not 1
Using Individual Values from a List
Exercise 3-1: Names
Exercise 3-2: Greetings
Exercise 3-3: Your Own List
Modifying, Adding, and Removing Elements
Modifying Elements in a List
Adding Elements to a List
Removing Elements from a List
Exercise 3-4: Guest List
Exercise 3-5: Changing Guest List
Exercise 3-6: More Guests
Exercise 3-7: Shrinking Guest List
Organizing a List
Sorting a List Permanently with the sort() Method
Sorting a List Temporarily with the sorted() Function
Printing a List in Reverse Order
Finding the Length of a List
Exercise 3-8: Seeing the World
Exercise 3-9: Dinner Guests
Exercise 3-10: Every Function
Avoiding Index Errors When Working with Lists
Exercise 3-11: Intentional Error
Summary

CHAPTER 4: WORKING WITH LISTS


Looping Through an Entire List
A Closer Look at Looping
Doing More Work Within a for Loop
Doing Something After a for Loop
Avoiding Indentation Errors
Forgetting to Indent
Forgetting to Indent Additional Lines
Indenting Unnecessarily
Indenting Unnecessarily After the Loop
Forgetting the Colon
Exercise 4-1: Pizzas
Exercise 4-2: Animals
Making Numerical Lists
Using the range() Function
Using range() to Make a List of Numbers
Simple Statistics with a List of Numbers
List Comprehensions
Exercise 4-3: Counting to Twenty
Exercise 4-4: One Million
Exercise 4-5: Summing a Million
Exercise 4-6: Odd Numbers
Exercise 4-7: Threes
Exercise 4-8: Cubes
Exercise 4-9: Cube Comprehension
Working with Part of a List
Slicing a List
Looping Through a Slice
Copying a List
Exercise 4-10: Slices
Exercise 4-11: My Pizzas, Your Pizzas
Exercise 4-12: More Loops
Tuples
Defining a Tuple
Looping Through All Values in a Tuple
Writing Over a Tuple
Exercise 4-13: Buffet
Styling Your Code
The Style Guide
Indentation
Line Length
Blank Lines
Other Style Guidelines
Exercise 4-14: PEP 8
Exercise 4-15: Code Review
Summary

CHAPTER 5: IF STATEMENTS
A Simple Example
Conditional Tests
Checking for Equality
Ignoring Case When Checking for Equality
Checking for Inequality
Numerical Comparisons
Checking Multiple Conditions
Checking Whether a Value Is in a List
Checking Whether a Value Is Not in a List
Boolean Expressions
Exercise 5-1: Conditional Tests
Exercise 5-2: More Conditional Tests
if Statements
Simple if Statements
if-else Statements
The if-elif-else Chain
Using Multiple elif Blocks
Omitting the else Block
Testing Multiple Conditions
Exercise 5-3: Alien Colors #1
Exercise 5-4: Alien Colors #2
Exercise 5-5: Alien Colors #3
Exercise 5-6: Stages of Life
Exercise 5-7: Favorite Fruit
Using if Statements with Lists
Checking for Special Items
Checking That a List Is Not Empty
Using Multiple Lists
Exercise 5-8: Hello Admin
Exercise 5-9: No Users
Exercise 5-10: Checking Usernames
Exercise 5-11: Ordinal Numbers
Styling Your if Statements
Exercise 5-12: Styling if Statements
Exercise 5-13: Your Ideas
Summary
CHAPTER 6: DICTIONARIES
A Simple Dictionary
Working with Dictionaries
Accessing Values in a Dictionary
Adding New Key-Value Pairs
Starting with an Empty Dictionary
Modifying Values in a Dictionary
Removing Key-Value Pairs
A Dictionary of Similar Objects
Using get() to Access Values
Exercise 6-1: Person
Exercise 6-2: Favorite Numbers
Exercise 6-3: Glossary
Looping Through a Dictionary
Looping Through All Key-Value Pairs
Looping Through All the Keys in a Dictionary
Looping Through a Dictionary’s Keys in a Particular Order
Looping Through All Values in a Dictionary
Exercise 6-4: Glossary 2
Exercise 6-5: Rivers
Exercise 6-6: Polling
Nesting
A List of Dictionaries
A List in a Dictionary
A Dictionary in a Dictionary
Exercise 6-7: People
Exercise 6-8: Pets
Exercise 6-9: Favorite Places
Exercise 6-10: Favorite Numbers
Exercise 6-11: Cities
Exercise 6-12: Extensions
Summary

CHAPTER 7: USER INPUT AND WHILE LOOPS


How the input() Function Works
Writing Clear Prompts
Using int() to Accept Numerical Input
The Modulo Operator
Exercise 7-1: Rental Car
Exercise 7-2: Restaurant Seating
Exercise 7-3: Multiples of Ten
Introducing while Loops
The while Loop in Action
Letting the User Choose When to Quit
Using a Flag
Using break to Exit a Loop
Using continue in a Loop
Avoiding Infinite Loops
Exercise 7-4: Pizza Toppings
Exercise 7-5: Movie Tickets
Exercise 7-6: Three Exits
Exercise 7-7: Infinity
Using a while Loop with Lists and Dictionaries
Moving Items from One List to Another
Removing All Instances of Specific Values from a List
Filling a Dictionary with User Input
Exercise 7-8: Deli
Exercise 7-9: No Pastrami
Exercise 7-10: Dream Vacation
Summary

CHAPTER 8: FUNCTIONS
Defining a Function
Passing Information to a Function
Arguments and Parameters
Exercise 8-1: Message
Exercise 8-2: Favorite Book
Passing Arguments
Positional Arguments
Keyword Arguments
Default Values
Equivalent Function Calls
Avoiding Argument Errors
Exercise 8-3: T-Shirt
Exercise 8-4: Large Shirts
Exercise 8-5: Cities
Return Values
Returning a Simple Value
Making an Argument Optional
Returning a Dictionary
Using a Function with a while Loop
Exercise 8-6: City Names
Exercise 8-7: Album
Exercise 8-8: User Albums
Passing a List
Modifying a List in a Function
Preventing a Function from Modifying a List
Exercise 8-9: Messages
Exercise 8-10: Sending Messages
Exercise 8-11: Archived Messages
Passing an Arbitrary Number of Arguments
Mixing Positional and Arbitrary Arguments
Using Arbitrary Keyword Arguments
Exercise 8-12: Sandwiches
Exercise 8-13: User Profile
Exercise 8-14: Cars
Storing Your Functions in Modules
Importing an Entire Module
Importing Specific Functions
Using as to Give a Function an Alias
Using as to Give a Module an Alias
Importing All Functions in a Module
Styling Functions
Exercise 8-15: Printing Models
Exercise 8-16: Imports
Exercise 8-17: Styling Functions
Summary

CHAPTER 9: CLASSES
Creating and Using a Class
Creating the Dog Class
The __init__() Method
Making an Instance from a Class
Exercise 9-1: Restaurant
Exercise 9-2: Three Restaurants
Exercise 9-3: Users
Working with Classes and Instances
The Car Class
Setting a Default Value for an Attribute
Modifying Attribute Values
Exercise 9-4: Number Served
Exercise 9-5: Login Attempts
Inheritance
The __init__() Method for a Child Class
Defining Attributes and Methods for the Child Class
Overriding Methods from the Parent Class
Instances as Attributes
Modeling Real-World Objects
Exercise 9-6: Ice Cream Stand
Exercise 9-7: Admin
Exercise 9-8: Privileges
Exercise 9-9: Battery Upgrade
Importing Classes
Importing a Single Class
Storing Multiple Classes in a Module
Importing Multiple Classes from a Module
Importing an Entire Module
Importing All Classes from a Module
Importing a Module into a Module
Using Aliases
Finding Your Own Workflow
Exercise 9-10: Imported Restaurant
Exercise 9-11: Imported Admin
Exercise 9-12: Multiple Modules
The Python Standard Library
Exercise 9-13: Dice
Exercise 9-14: Lottery
Exercise 9-15: Lottery Analysis
Exercise 9-16: Python Module of the Week
Styling Classes
Summary

CHAPTER 10: FILES AND EXCEPTIONS


Reading from a File
Reading the Contents of a File
Relative and Absolute File Paths
Accessing a File’s Lines
Working with a File’s Contents
Large Files: One Million Digits
Is Your Birthday Contained in Pi?
Exercise 10-1: Learning Python
Exercise 10-2: Learning C
Exercise 10-3: Simpler Code
Writing to a File
Writing a Single Line
Writing Multiple Lines
Exercise 10-4: Guest
Exercise 10-5: Guest Book
Exceptions
Handling the ZeroDivisionError Exception
Using try-except Blocks
Using Exceptions to Prevent Crashes
The else Block
Handling the FileNotFoundError Exception
Analyzing Text
Working with Multiple Files
Failing Silently
Deciding Which Errors to Report
Exercise 10-6: Addition
Exercise 10-7: Addition Calculator
Exercise 10-8: Cats and Dogs
Exercise 10-9: Silent Cats and Dogs
Exercise 10-10: Common Words
Storing Data
Using json.dumps() and json.loads()
Saving and Reading User-Generated Data
Refactoring
Exercise 10-11: Favorite Number
Exercise 10-12: Favorite Number Remembered
Exercise 10-13: User Dictionary
Exercise 10-14: Verify User
Summary

CHAPTER 11: TESTING YOUR CODE


Installing pytest with pip
Updating pip
Another Random Scribd Document
with Unrelated Content
with its rapidly changing expression that left one in a state of
bewilderment as to what particular emotion was predominant.

A slight sound as of some one opening a door in the front room


was heard. Grace’s head turned ever so little, and though the
expression on her face did not change, attentiveness and intelligence
swam instantly into her eyes. The captain, observing, bent his own
ears to the sound that had arrested Grace Harlowe’s attention. She
glanced at her watch, nodded to Elfreda, and greatly to the
amazement of her caller, got down and crawled under the bed.

Grace emerged, a moment later, her face flushed, her hair in slight
disorder, and smiled radiantly at the visitor. She offered no
explanation to the captain, but nodding to Elfreda, the latter began
speaking of the girls of the Overton unit. It was half after eleven
when Grace, hearing movement again in the front room, got up and
went over to the captain. Leaning over him she placed her lips close
to his ear.

“You will please crawl under the bed,” she whispered. “You will
find the carpet drawn back, and by groping you will find a hole in
the floor, made by the auger that you so kindly loaned to me. Place
your ear to the hole and listen. Do not move and be sure to control
your breathing to the limit. Have a handkerchief ready in case you
find you have to cough or sneeze. I think you will hear something
interesting. Afterwards I will supply any points that may be required
to explain any remarks you may hear and not understand. Do not
come out or move until I snap my finger. Here! You forgot your
shoes,” she reminded him, picking up and handing them to him. The
captain flushed and accepted the shoes and the rebuke with a
profound bow.

The Overton girls watched him with interest, and both were
obliged to admit that the captain was very agile. He wriggled under
and out of sight without making a sound, then all was silence.
Listening as intently as she might she failed to hear his breathing.
Grace then removed the blouse from the wall.

“Let’s turn in, Elfreda. I’m terribly sleepy,” yawned Grace.

Putting out the light the two girls threw themselves on the bed,
and apparently went to sleep. There was a long wait, without a
sound coming from the man under the bed.

Grace heard the trap raised, though she had not heard any one
walking. She snapped her fingers once, receiving a similar signal
from the man on watch at the auger hole. Silence settled over the
house until perhaps five minutes later the Overton girls heard the
drone of a far-away voice. It came from the cellar, and the chief of
the Army Intelligence Department was listening to every word that
the voice uttered.

Grace Harlowe found herself wishing that she might see the
expression on the face of Captain Boucher at that moment.
CHAPTER XXIV

THE TRAP IS SPRUNG

I T must have been fully half an hour later when Grace Harlowe’s
straining ears told her that the conversation was ended. Hearing
footsteps on the stairs she snapped her fingers sharply.

“Quietly, Elfreda!” she warned, slipping out to the floor about the
time that Captain Boucher rose from the floor before her. “Any luck?”
she whispered.

“I should say so. I must speak with you. Go to headquarters


directly and I will meet you there. Two blocks below here on the
Schutzenstrasse you will find a drosky. The driver is one of our
operators. Hand him this card and tell him to take you to the office.
If you get there before I do, tell the orderly to summon General
Gordon in my name for an immediate conference.”

The Overton girls slipped into their blouses, after which Grace
crawled under the bed and replaced the carpet. This done she
opened the window, all this without making a sound likely to attract
attention. Elfreda climbed out first, followed by the captain, then
Grace herself. The window was lowered and three persons were
swallowed up in the darkness of the night, the captain going to the
left, the girls to the right.

Grace and Elfreda found the carriage and quickly reached


headquarters, where Grace delivered her message. General Gordon
came in about the time that Captain Boucher arrived, and looked his
amazement at finding the Overton girls there.

“What’s wrong, Boucher?” he demanded.


“Nothing except that our very good friend, Mrs. Gray, has run
down the plotters. I haven’t all of the story yet, but I have this
evening listened to one of them giving the plans for blowing up the
second ammunition dump and sacrificing the town for the sake of
smoking the Americans out. This includes a desperate attempt to fire
the barracks so that many men must perish. It’s damnable!”

Captain Boucher then related briefly all that had occurred that
evening.

“This man Klein must be arrested immediately. How did you know
that we had caught Yat Sen, Mrs. Gray?” he demanded, turning to
the demure figure of the Overton girl.

“I heard the doctor reporting it over the telephone in the cellar.


The telephone evidently leads across the river. He reports every
night at about the same time. It was from overhearing him that I
was able to warn you about the proposed firing of Barracks Number
Two.”

“Now that the matter is in my mind, will you tell me why you had
your tunic pinned to the wall?” questioned Captain Boucher.

“There is a dictaphone behind the wallpaper at that point, with an


opening through the paper so small that one never would notice it.”

“I thought so. How did you chance to discover it?”

“I looked for it.”

The two officers exchanged meaning glances.

“How did you come to suspect the doctor?” continued the captain.

“He was too suave to be genuine. Then, too, I presume my


intuition had something to do with it. Little things, expressions on
faces, mannerisms, all these things always did make an impression
on me.” Grace then went on to relate conversations that she had
heard when the doctor was talking at the cellar telephone.

“The doctor in his conversation this evening referred to some


person as the Babbler. Do you know whom he meant?”

“Mrs. Smythe.”

“Is it possible?” exclaimed the captain.

“I am not at all surprised,” interjected the general. “She must go,


even if she succeeds in clearing herself.”

Grace hastened to urge that no suspicion be directed at Mrs.


Smythe, who, she declared, was a vain woman who had been used
by the German spies because they knew how to appeal to her vanity.
In this way they obtained information that the supervisor did not
realize she was giving.

“You speak of spies. I heard references made to at least one this


evening. Do you suspect any others?” asked the captain.

“I know one other, sir. That one is the supervisor’s maid, Marie
Debussy!”

“Are you positive?” asked the general.

“I am, sir. I have heard conversations between her and the doctor.
I have seen her acting suspiciously and in conference with men that
I was certain were enemy officers, and I have heard her holding
telephone conversations that connected her with plots against our
men.”

“I wonder who she can be?” marveled the captain.

“Who she is? She is Rosa von Blum, the famous German agent.”

Both officers started, and stared at her in amazement.


“I presume you also would like to know who this other spy, that
you call Doctor Klein, is. He is Captain Carl Schuster of the German
Secret Service, a man who, I have heard said, is perhaps the
cleverest of the Imperial operators. You no doubt wonder how I
have obtained this information. It was quite simple, not due to any
unusual ability or cleverness on my part. I did not know definitely
until last night, when he said upon opening the telephone
conversation, ‘This is Carl! No, Carl Schuster—B One!’ I then knew.
The revelation of Rosa von Blum’s identity occurred in a somewhat
similar manner.”

“This is most remarkable!” exclaimed Captain Boucher.

“Remember what I told you, Boucher,” interjected the general. “I


think you will agree with my expressed estimate of Mrs. Gray’s
ability. I may say, Mrs. Gray,” he added, turning to the Overton girl,
“that we have wondered about Doctor Klein, and that Miss Marshall
has been working on his case, but without results beyond mere
suspicion. Before the army reached the Rhine our operatives here
reported their suspicions of him. That was the reason you were
billeted in his house. I told Captain Boucher that if there was the
slightest basis for our suspicions, you would discover that basis. We
decided that nothing should be said to you of those suspicions. I
wished to prove to the captain that my estimate of your ability was
not influenced by the fact that you saved my life in the Argonne. We
therefore gave you the opportunity to demonstrate, and you did.”

“That was what I referred to when I told you you would be


surprised when you had set yourself straight on the matter of the
doctor,” spoke up Captain Boucher. “You doubted Miss Marshall too,
and with very good reason. That shows what a clever worker she is.
You and she will compare notes to-morrow. But this that you tell me
about Schuster and von Blum is a blow between the eyes. I never
even considered such a possibility. It should be some satisfaction to
you to know that you have turned up two of the most dangerous
agents in the enemy service. It surely is a source of satisfaction to
us. I suppose we should have Mrs. Smythe dismissed to-morrow,
General? Why not recommend that Mrs. Gray take charge as
supervisor in her place?”

“I had hoped to get home soon, sir,” answered Grace, after a


slight hesitancy.

“Take it until some one else is selected,” urged the general. “How
about those two spies, Captain?”

“We will arrest them at once.”

“If I may offer a suggestion, gentlemen, I would urge that it be


done with a speed that will not permit either to do away with
evidence that may be in their possession. It might be wise for you to
have your men enter the doctor’s house through our quarters, which
will give access to the hall. Once in the hall, the doors of the doctor’s
apartment, and that occupied by Mrs. Smythe, should be burst in
without warning. The doctor sleeps in the rear room next to ours,
and the maid occupies the corresponding room in Mrs. Smythe’s
quarters. If you wish I will accompany you.”

“You two ladies will remain here, Mrs. Gray!” commanded the
general. “You have done quite enough for one night. Then again,
there may be shooting, and you might get hurt. You see we cannot
afford to lose you just yet.”

“It would not be the first time I had been under fire, sir,” replied
“Captain” Grace in a mild voice.

“Then, too, for obvious reasons, we do not wish you to appear in


the case. The doctor may have surmised that you have had
something to do with it, but that will be the extent of his knowledge
of your participation. Boucher, get your men and go after those
people.”
Grace and Elfreda occupied General Gordon’s quarters for the rest
of the night, and were weary enough to sleep the night through
without even once turning over. In the early morning they were
summoned to Captain Boucher’s office, where they were informed
that the doctor had been taken only after a fight in which two
soldiers were wounded—that both he and the woman were being
held for trial, and that considerable documentary evidence had been
found in a secret receptacle in the doctor’s cellar.

“We shall hope to accomplish something by using his cellar


telephone late this evening,” added the Intelligence officer.

“What about Mrs. Smythe?” questioned Grace.

“She undoubtedly will be recalled to-day. The woman may


consider herself fortunate that she too is not under arrest.”

“I’m sorry,” murmured Grace. “Do you not think, Captain, that,
with the lesson she has learned, Mrs. Smythe may more clearly see
her error and do better?”

“No!” exploded Captain Boucher. “Besides, there is no place for a


woman with her lack of brains in this army. You ought to have the
Congressional Medal, but we of the Intelligence Service not only
work in the dark, but must be content to be retiring heroes destined
to blush unseen in the shadows, while the other fellows are the
objects of the world’s acclaim. Your house is under guard, but you
are at liberty to return there and make yourselves at home. It has
been decided to keep a guard there so long as you ladies occupy the
house. Mrs. Smythe has been removed to other lodgings. It will not
be necessary for you to see her, and I prefer that you do not report
for duty until after her departure. Thank you. You are a clever
woman, Mrs. Gray. General Gordon will see to it that you have
proper recognition in reports.”

Both German spies were tried within a few days before a military
tribunal and sentenced to prison. Grace took charge of the welfare
work on the second day after their arrest, Mrs. Smythe then being
well on her way toward Brest, whence she was booked for passage
to America, a disgraced and unhappy woman, but the Overton girl
found no joy in the downfall of her enemy. Rather was she deeply
depressed over it, and wished that she might have been able to do
something to soften the blow, but the supervisor had made that
impossible.

Grace’s mind, however, was at once filled with other affairs, and
especially in what her husband wrote to her. He was writing from
Paris, which city he was leaving that very day, he having been
ordered to Russia on military duty.

Now that Tom Gray had left Europe, Grace began to long for
home, but it was a little more than a month later that “Captain”
Grace finally severed her connection with the army and bidding
good-bye to her friends, entrained for Paris. She and most of the
Overton Unit, including Yvonne and the yellow cat, sailed for
America and Home, early in the following week.

Grace had passed through experiences on the western front such


as few women could boast of; she had won honors, she had made
friends in high places, but it was the same Grace Harlowe, gentle,
sweet, lovable, unsullied by the scenes through which she had
passed, that was returning to the “House Behind the World,” where
she hoped to spend many happy, peaceful years with her much
loved husband and her new-found daughter Yvonne.

The further adventures of Grace and the splendid girls of the


Overton College Unit will be found in a following volume, entitled,
“Grace Harlowe’s Overland Riders on the Old Apache Trail.”
THE END
HENRY ALTEMUS COMPANY’S

Best and Least Expensive


Books for Boys and Girls

The Motor Boat Club Series


By H. IRVING HANCOCK
The keynote of these books is manliness. The stories are
wonderfully entertaining, and they are at the same time sound and
wholesome. No boy will willingly lay down an unfinished book in
this series.

1 THE MOTOR BOAT CLUB OF THE KENNEBEC; Or, The Secret of


Smugglers’ Island.

2 THE MOTOR BOAT CLUB AT NANTUCKET; Or, The Mystery of the


Dunstan Heir.

3 THE MOTOR BOAT CLUB OFF LONG ISLAND; Or, A Daring Marine
Game at Racing Speed.
4 THE MOTOR BOAT CLUB AND THE WIRELESS; Or, The Dot, Dash
and Dare Cruise.

5 THE MOTOR BOAT CLUB IN FLORIDA; Or, Laying the Ghost of


Alligator Swamp.

6 THE MOTOR BOAT CLUB AT THE GOLDEN GATE; Or, A Thrilling


Capture in the Great Fog.

7 THE MOTOR BOAT CLUB ON THE GREAT LAKES; Or, The Flying
Dutchman of the Big Fresh Water.

Cloth, Illustrated Price, per Volume, $1.00

Sold by all booksellers or sent postpaid on receipt of price.

Henry Altemus Company


1326–1336 Vine Street
Philadelphia
Battleship Boys Series
By FRANK GEE PATCHIN
These stories throb with the life of young Americans on to-day’s
huge drab Dreadnaughts.

1 THE BATTLESHIP BOYS AT SEA; Or, Two Apprentices in Uncle


Sam’s Navy.

2 THE BATTLESHIP BOYS’ FIRST STEP UPWARD; Or, Winning Their


Grades as Petty Officers.

3 THE BATTLESHIP BOYS IN FOREIGN SERVICE; Or, Earning New


Ratings in European Seas.

4 THE BATTLESHIP BOYS IN THE TROPICS; Or, Upholding the


American Flag in a Honduras Revolution.

5 THE BATTLESHIP BOYS IN THE WARDROOM; Or, Winning their


Commissions as Line Officers.

6 THE BATTLESHIP BOYS WITH THE ADRIATIC CHASERS; Or,


Blocking the Path of the Undersea Raiders.

7 THE BATTLESHIP BOYS’ SKY PATROL; Or, Fighting the Hun from
above the Clouds.
Price, $1.00 each.
The Range and Grange Hustlers
By FRANK GEE PATCHIN
Have you any idea of the excitements, the glories of life on great
ranches in the West? Any bright boy will “devour” the books of this
series, once he has made a start with the first volume.

1 THE RANGE AND GRANGE HUSTLERS ON THE RANCH; Or, The


Boy Shepherds of the Great Divide.

2 THE RANGE AND GRANGE HUSTLERS’ GREATEST ROUND-UP; Or,


Pitting Their Wits Against a Packers’ Combine.

3 THE RANGE AND GRANGE HUSTLERS ON THE PLAINS; Or,


Following the Steam Plows Across the Prairie.

4 THE RANGE AND GRANGE HUSTLERS AT CHICAGO; Or, The


Conspiracy of the Wheat Pit.

Cloth, Illustrated Price, per Volume, $1.00


Submarine Boys Series
By VICTOR G. DURHAM
1 THE SUBMARINE BOYS ON DUTY; Or, Life on a Diving Torpedo
Boat.

2 THE SUBMARINE BOYS’ TRIAL TRIP; Or, “Making Good” as Young


Experts.

3 THE SUBMARINE BOYS AND THE MIDDIES; Or, The Prize Detail
at Annapolis.

4 THE SUBMARINE BOYS AND THE SPIES; Or, Dodging the Sharks
of the Deep.

5 THE SUBMARINE BOYS’ LIGHTNING CRUISE; Or, The Young


Kings of the Deep.

6 THE SUBMARINE BOYS FOR THE FLAG; Or, Deeding Their Lives
to Uncle Sam.

7 THE SUBMARINE BOYS AND THE SMUGGLERS; Or, Breaking Up


the New Jersey Customs Frauds.
Grace Harlowe Overseas Series
1 GRACE HARLOWE OVERSEAS.

2 GRACE HARLOWE WITH THE RED CROSS IN FRANCE.

3 GRACE HARLOWE WITH THE MARINES AT CHATEAU THIERRY.

4 GRACE HARLOWE WITH THE AMERICAN ARMY IN THE


ARGONNE.

The College Girls Series


By JESSIE GRAHAM FLOWER, A.M.
1 GRACE HARLOWE’S FIRST YEAR AT OVERTON COLLEGE.

2 GRACE HARLOWE’S SECOND YEAR AT OVERTON COLLEGE.

3 GRACE HARLOWE’S THIRD YEAR AT OVERTON COLLEGE.

4 GRACE HARLOWE’S FOURTH YEAR AT OVERTON COLLEGE.

5 GRACE HARLOWE’S RETURN TO OVERTON CAMPUS.

6 GRACE HARLOWE’S PROBLEM.

7 GRACE HARLOWE’S GOLDEN SUMMER.


All these books are bound in Cloth and will be
sent postpaid on receipt of only $1.00 each.
Pony Rider Boys Series
By FRANK GEE PATCHIN
These tales may be aptly described the best books for boys and
girls.

1 THE PONY RIDER BOYS IN THE ROCKIES; Or, The Secret of the
Lost Claim.—2 THE PONY RIDER BOYS IN TEXAS; Or, The
Veiled Riddle of the Plains.—3 THE PONY RIDER BOYS IN
MONTANA; Or, The Mystery of the Old Custer Trail.—4 THE
PONY RIDER BOYS IN THE OZARKS; Or, The Secret of
Ruby Mountain.—5 THE PONY RIDER BOYS IN THE
ALKALI; Or, Finding a Key to the Desert Maze.—6 THE
PONY RIDER BOYS IN NEW MEXICO; Or, The End of the
Silver Trail.—7 THE PONY RIDER BOYS IN THE GRAND
CANYON; Or, The Mystery of Bright Angel Gulch.

Cloth, Illustrated Price, per Volume, $1.00

The Boys of Steel Series


By JAMES R. MEARS
Each book presents vivid picture of this great industry. Each story
is full of adventure and fascination.

1 THE IRON BOYS IN THE MINES; Or, Starting at the Bottom of the
Shaft.—2 THE IRON BOYS AS FOREMEN; Or, Heading the
Diamond Drill Shift.—3 THE IRON BOYS ON THE ORE
BOATS; Or, Roughing It on the Great Lakes.—4 THE IRON
BOYS IN THE STEEL MILLS; Or, Beginning Anew in the
Cinder Pits.

Cloth, Illustrated Price, per Volume, $1.00

The Madge Morton Books


By AMY D. V. CHALMERS
1 MADGE MORTON—CAPTAIN OF THE MERRY MAID.

2 MADGE MORTON’S SECRET.

3 MADGE MORTON’S TRUST.

4 MADGE MORTON’S VICTORY.

Cloth, Illustrated Price, per Volume, $1.00

West Point Series


By H. IRVING HANCOCK
The principal characters in these narratives are manly, young
Americans whose doings will inspire all boy readers.

1 DICK PRESCOTT’S FIRST YEAR AT WEST POINT; Or, Two Chums


in the Cadet Gray.

2 DICK PRESCOTT’S SECOND YEAR AT WEST POINT; Or, Finding


the Glory of the Soldier’s Life.

3 DICK PRESCOTT’S THIRD YEAR AT WEST POINT; Or, Standing


Firm for Flag and Honor.

4 DICK PRESCOTT’S FOURTH YEAR AT WEST POINT; Or, Ready to


Drop the Gray for Shoulder Straps.

Cloth, Illustrated Price, per Volume, $1.00

Annapolis Series
By H. IRVING HANCOCK
The Spirit of the new Navy is delightfully and truthfully depicted
in these volumes.

1 DAVE DARRIN’S FIRST YEAR AT ANNAPOLIS; Or, Two Plebe


Midshipmen at the U. S. Naval Academy.

2 DAVE DARRIN’S SECOND YEAR AT ANNAPOLIS; Or, Two


Midshipmen as Naval Academy “Youngsters.”

3 DAVE DARRIN’S THIRD YEAR AT ANNAPOLIS; Or, Leaders of the


Second Class Midshipmen.
4 DAVE DARRIN’S FOURTH YEAR AT ANNAPOLIS; Or, Headed for
Graduation and the Big Cruise.

Cloth, Illustrated Price, per Volume, $1.00

The Young Engineers Series


By H. IRVING HANCOCK
The heroes of these stories are known to readers of the High
School Boys Series. In this new series Tom Reade and Harry
Hazelton prove worthy of all the traditions of Dick & Co.

1 THE YOUNG ENGINEERS IN COLORADO; Or, At Railroad Building


in Earnest.

2 THE YOUNG ENGINEERS IN ARIZONA; Or, Laying Tracks on the


“Man-Killer” Quicksand.

3 THE YOUNG ENGINEERS IN NEVADA; Or, Seeking Fortune on the


Turn of a Pick.

4 THE YOUNG ENGINEERS IN MEXICO; Or, Fighting the Mine


Swindlers.

Cloth, Illustrated Price, per Volume, $1.00


Boys of the Army Series
By H. IRVING HANCOCK
These books breathe the life and spirit of the United States Army
of to-day, and the life, just as it is, is described by a master pen.

1 UNCLE SAM’S BOYS IN THE RANKS; Or, Two Recruits in the


United States Army.

2 UNCLE SAM’S BOYS ON FIELD DUTY; Or, Winning Corporal’s


Chevrons.

3 UNCLE SAM’S BOYS AS SERGEANTS; Or, Handling Their First Real


Commands.

4 UNCLE SAM’S BOYS IN THE PHILIPPINES; Or, Following the Flag


Against the Moros.

5 UNCLE SAM’S BOYS AS LIEUTENANTS; Or, Serving Old Glory as


Line Officers.

6 UNCLE SAM’S BOYS WITH PERSHING; Or, Dick Prescott at Grips


with the Boche.

7 UNCLE SAM’S BOYS SMASH THE GERMANS; Or, Winding Up the


Great War.
Dave Darrin Series
By H. IRVING HANCOCK
1 DAVE DARRIN AT VERA CRUZ; Or, Fighting With the U. S. Navy in
Mexico.

2 DAVE DARRIN ON MEDITERRANEAN SERVICE.

3 DAVE DARRIN’S SOUTH AMERICAN CRUISE.

4 DAVE DARRIN ON THE ASIATIC STATION.

5 DAVE DARRIN AND THE GERMAN SUBMARINES.

6 DAVE DARRIN AFTER THE MINE LAYERS; Or, Hitting the Enemy a
Hard Naval Blow.

The Meadow-Brook Girls Series


By JANET ALDRIDGE
1 THE MEADOW-BROOK GIRLS UNDER CANVAS.

2 THE MEADOW-BROOK GIRLS ACROSS COUNTRY.

3 THE MEADOW-BROOK GIRLS AFLOAT.

4 THE MEADOW-BROOK GIRLS IN THE HILLS.

5 THE MEADOW-BROOK GIRLS BY THE SEA.


6 THE MEADOW-BROOK GIRLS ON THE TENNIS COURTS.

All these books are bound in Cloth and will be sent postpaid on
receipt of only $1.00 each.
High School Boys Series
By H. IRVING HANCOCK
In this series of bright, crisp books a new note has been struck.

Boys of every age under sixty will be interested in these


fascinating volumes.

1 THE HIGH SCHOOL FRESHMEN; Or, Dick & Co.’s First Year Pranks
and Sports.

2 THE HIGH SCHOOL PITCHER; Or, Dick & Co. on the Gridley
Diamond.

3 THE HIGH SCHOOL LEFT END; Or, Dick & Co. Grilling on the
Football Gridiron.

4 THE HIGH SCHOOL CAPTAIN OF THE TEAM; Or, Dick & Co.
Leading the Athletic Vanguard.

Cloth, Illustrated Price, per Volume, $1.00

Grammar School Boys Series


By H. IRVING HANCOCK
This series of stories, based on the actual doings of grammar
school boys, comes near to the heart of the average American boy.

1 THE GRAMMAR SCHOOL BOYS OF GRIDLEY; Or, Dick & Co. Start
Things Moving.

2 THE GRAMMAR SCHOOL BOYS SNOWBOUND; Or, Dick & Co. at


Winter Sports.

3 THE GRAMMAR SCHOOL BOYS IN THE WOODS; Or, Dick & Co.
Trail Fun and Knowledge.

4 THE GRAMMAR SCHOOL BOYS IN SUMMER ATHLETICS; Or, Dick


& Co. Make Their Fame Secure.

Cloth, Illustrated Price, per Volume, $1.00

High School Boys’ Vacation Series


By H. IRVING HANCOCK
“Give us more Dick Prescott books!”

This has been the burden of the cry from young readers of the
country over. Almost numberless letters have been received by the
publishers, making this eager demand; for Dick Prescott, Dave
Darrin, Tom Reade, and the other members of Dick & Co. are the
most popular high school boys in the land. Boys will alternately
thrill and chuckle when reading these splendid narratives.
1 THE HIGH SCHOOL BOYS’ CANOE CLUB; Or, Dick & Co.’s Rivals
on Lake Pleasant.

2 THE HIGH SCHOOL BOYS IN SUMMER CAMP; Or, The Dick


Prescott Six Training for the Gridley Eleven.

3 THE HIGH SCHOOL BOYS’ FISHING TRIP; Or, Dick & Co. in the
Wilderness.

4 THE HIGH SCHOOL BOYS’ TRAINING HIKE; Or, Dick & Co.
Making Themselves “Hard as Nails.”

Cloth, Illustrated Price, per Volume, $1.00

The Circus Boys Series


By EDGAR B. P. DARLINGTON
Mr. Darlington’s books breathe forth every phase of an intensely
interesting and exciting life.

1 THE CIRCUS BOYS ON THE FLYING RINGS; Or, Making the Start
in the Sawdust Life.

2 THE CIRCUS BOYS ACROSS THE CONTINENT; Or, Winning New


Laurels on the Tanbark.

3 THE CIRCUS BOYS IN DIXIE LAND; Or, Winning the Plaudits of


the Sunny South.

4 THE CIRCUS BOYS ON THE MISSISSIPPI; Or, Afloat with the Big
Show on the Big River.
Cloth, Illustrated Price, per Volume, $1.00

The High School Girls Series


By JESSIE GRAHAM FLOWER, A. M.
These breezy stories of the American High School Girl take the
reader fairly by storm.

1 GRACE HARLOWE’S PLEBE YEAR AT HIGH SCHOOL; Or, The


Merry Doings of the Oakdale Freshman Girls.

2 GRACE HARLOWE’S SOPHOMORE YEAR AT HIGH SCHOOL; Or,


The Record of the Girl Chums in Work and Athletics.

3 GRACE HARLOWE’S JUNIOR YEAR AT HIGH SCHOOL; Or, Fast


Friends in the Sororities.

4 GRACE HARLOWE’S SENIOR YEAR AT HIGH SCHOOL; Or, The


Parting of the Ways.

Cloth, Illustrated Price, per Volume, $1.00

The Automobile Girls Series


By LAURA DENT CRANE
No girl’s library—no family book-case can be considered at all
complete unless it contains these sparkling twentieth-century
books.

1 THE AUTOMOBILE GIRLS AT NEWPORT; Or, Watching the


Summer Parade.—2 THE AUTOMOBILE GIRLS IN THE
BERKSHIRES; Or, The Ghost of Lost Man’s Trail.—3 THE
AUTOMOBILE GIRLS ALONG THE HUDSON; Or, Fighting
Fire in Sleepy Hollow.—4 THE AUTOMOBILE GIRLS AT
CHICAGO; Or, Winning Out Against Heavy Odds.—5 THE
AUTOMOBILE GIRLS AT PALM BEACH; Or, Proving Their
Mettle Under Southern Skies.—6 THE AUTOMOBILE GIRLS
AT WASHINGTON; Or, Checkmating the Plots of Foreign
Spies.

Cloth, Illustrated Price, per Volume, $1.00


Transcriber’s Note
Changes from the original publication are
as follows:

Page 6
intelligence captain smoothes
changed to
intelligence captain smooths
Page 75
grace Harlowe informed them
changed to
Grace Harlowe informed them
Page 222
I might say considerable more
changed to
I might say considerably more
Book lists
Battleship Boys Series and
Boys of the Army Series
numbers 6, 7 and 8 changed
respectively to 5, 6 and 7
*** END OF THE PROJECT GUTENBERG EBOOK GRACE HARLOWE
WITH THE AMERICAN ARMY ON THE RHINE ***

Updated editions will replace the previous one—the old editions will
be renamed.

Creating the works from print editions not protected by U.S.


copyright law means that no one owns a United States copyright in
these works, so the Foundation (and you!) can copy and distribute it
in the United States without permission and without paying
copyright royalties. Special rules, set forth in the General Terms of
Use part of this license, apply to copying and distributing Project
Gutenberg™ electronic works to protect the PROJECT GUTENBERG™
concept and trademark. Project Gutenberg is a registered trademark,
and may not be used if you charge for an eBook, except by following
the terms of the trademark license, including paying royalties for use
of the Project Gutenberg trademark. If you do not charge anything
for copies of this eBook, complying with the trademark license is
very easy. You may use this eBook for nearly any purpose such as
creation of derivative works, reports, performances and research.
Project Gutenberg eBooks may be modified and printed and given
away—you may do practically ANYTHING in the United States with
eBooks not protected by U.S. copyright law. Redistribution is subject
to the trademark license, especially commercial redistribution.

START: FULL LICENSE


THE FULL PROJECT GUTENBERG LICENSE
PLEASE READ THIS BEFORE YOU DISTRIBUTE OR USE THIS WORK

To protect the Project Gutenberg™ mission of promoting the free


distribution of electronic works, by using or distributing this work (or
any other work associated in any way with the phrase “Project
Gutenberg”), you agree to comply with all the terms of the Full
Project Gutenberg™ License available with this file or online at
www.gutenberg.org/license.

Section 1. General Terms of Use and


Redistributing Project Gutenberg™
electronic works
1.A. By reading or using any part of this Project Gutenberg™
electronic work, you indicate that you have read, understand, agree
to and accept all the terms of this license and intellectual property
(trademark/copyright) agreement. If you do not agree to abide by all
the terms of this agreement, you must cease using and return or
destroy all copies of Project Gutenberg™ electronic works in your
possession. If you paid a fee for obtaining a copy of or access to a
Project Gutenberg™ electronic work and you do not agree to be
bound by the terms of this agreement, you may obtain a refund
from the person or entity to whom you paid the fee as set forth in
paragraph 1.E.8.

1.B. “Project Gutenberg” is a registered trademark. It may only be


used on or associated in any way with an electronic work by people
who agree to be bound by the terms of this agreement. There are a
few things that you can do with most Project Gutenberg™ electronic
works even without complying with the full terms of this agreement.
See paragraph 1.C below. There are a lot of things you can do with
Project Gutenberg™ electronic works if you follow the terms of this
agreement and help preserve free future access to Project
Gutenberg™ electronic works. See paragraph 1.E below.

You might also like