Building Python Programs 1st Edition Stuart Reges 2024 Scribd Download
Building Python Programs 1st Edition Stuart Reges 2024 Scribd Download
com
https://textbookfull.com/product/building-python-
programs-1st-edition-stuart-reges/
OR CLICK BUTTON
DOWNLOAD NOW
https://textbookfull.com/product/building-java-programs-a-back-to-
basics-approach-stuart-reges/
textboxfull.com
https://textbookfull.com/product/building-java-programs-a-back-to-
basics-approach-stuart-reges-2/
textboxfull.com
https://textbookfull.com/product/building-java-programs-a-back-to-
basics-approach-5th-edition-stuart-reges/
textboxfull.com
https://textbookfull.com/product/fundamentals-of-python-first-
programs-2nd-edition-kenneth-a-lambert/
textboxfull.com
Building Community and Family Resilience: Research,
Policy, and Programs Mike Stout
https://textbookfull.com/product/building-community-and-family-
resilience-research-policy-and-programs-mike-stout/
textboxfull.com
https://textbookfull.com/product/choppy-water-1st-edition-stuart-
woods-woods/
textboxfull.com
https://textbookfull.com/product/dendrites-3rd-edition-greg-stuart/
textboxfull.com
https://textbookfull.com/product/the-new-mechanical-philosophy-1st-
edition-stuart-glennan/
textboxfull.com
Building Python Programs
First Edition
Stuart Reges
University of Washington
Marty Stepp
Stanford University
Allison Obourn
University of Arizona
The authors and publisher of this book have used their best efforts
in preparing this book. These efforts include the development,
research, and testing of the theories and programs to determine
their effectiveness. The authors and publisher make no warranty of
any kind, expressed or implied, with regard to these programs or to
the documentation contained in this book. The authors and publisher
shall not be liable in any event for incidental or consequential
damages in connection with, or arising out of, the furnishing,
performance, or use of these programs.
1 18
ISBN 10: 0-13-520598-0
Our new Building Python Programs text is designed for use in a first
course in computer science. We have class-tested it with hundreds
of undergraduates at the University of Arizona, most of whom were
not computer science majors. This textbook is based on our
previous text, Building Java Programs, now in its fourth edition. The
Java text has proven effective in our class testing with thousands of
students including our own at the University of Washington since
2007.
The following table shows how the layered approach works in the
first seven chapters:
Layers in Chapters 1 –7
Supplements
Answers to all self-check problems appear on our web site and are
accessible to anyone: http://www.buildingpythonprograms.com/
In addition, our web site also has the following additional resources
available for students:
Instructors can access the following resources from our web site:
MyLab Programming
MyLab Programming helps students fully grasp the logic, semantics,
and syntax of programming. Through practice exercises and
immediate, personalized feedback, MyLab Programming improves
the programming competence of beginning students, who often
struggle with the basic concepts and paradigms of popular high-level
programming languages. A self-study and homework tool, the
MyLab Programming course consists of hundreds of small practice
exercises organized around the structure of this textbook. For
students, the system automatically detects errors in the logic and
syntax of their code submissions and offers targeted hints that
enable students to figure out what went wrong—and why. For
instructors, a comprehensive gradebook tracks correct and incorrect
answers and stores the code inputted by students for review.
Acknowledgments
We would also like to thank the staff at Pearson who helped produce
the book. Rose Kernan managed the project and was our primary
point of contact during book production. Rose did a phenomenal job;
she was diligent, responsive, and helpful at every step of the
process. Amanda Brands was our content producer, and she also
provided excellent support along the way. Thank you to Martha
McMaster for proofreading the text, and thanks to Shelly Gerger-
Knechtl for copy editing and indexing. We thank Yvonne Vannatta,
our marketing manager, and Meghan Jacoby, our editorial assistant.
We also want to thank the team of artists and compositors from
Pearson’s partner institutions who helped produce the chapters of
this text.
Last but not least, the authors would like to thank the CSC 110
students at the University of Arizona who class-tested our chapters
in rough draft form. Students provided helpful suggestions for
improving the content and also submitted corrections for typos and
errors in drafts of chapters.
Stuart Reges
University of Washington
Marty Stepp
Stanford University
Allison Obourn
University of Arizona
MyLab Programming
Through the power of practice and immediate personalized
feedback, MyLab Programming™ helps students master
programming fundamentals and build computational thinking skills.
PROGRAMMING PRACTICE
With MyLab Programming, your students will gain first-hand
programming experience in an interactive online environment.
IMMEDIATE, PERSONALIZED
FEEDBACK
MyLab Programming automatically detects errors in the logic and
syntax of their code submission and offers trageted hints that
enables students to figure out what went wrong and why.
GRADUATED COMPLEXITY
MyLab Programming breaks down programming concepts into short,
understandable sequences of exercises. Within each sequence the
level and sophistication of the exercises increase gradually but
steadily.
DYNAMIC ROSTER
Students’ submissions are stored in a roster that indicates whether
the submission is correct, how many attempts were made, and the
actual code submissions from each attempt.
PEARSON eTEXT
The Pearson eText gives students access to their textbook anytime,
anywhere
STEP-BY-STEP VIDEONOTE
TUTORIALS
These step-by-step video tutorials enhance the programming
concepts presented in select Pearson textbooks.
Copyright © 2018 Pearson Education, Inc. or its affiliate(s). All rights reserved. HELO88173 · 11/15
Brief Contents
Chapter 1 Introduction to Python Programming 1
Why Python? 7
Escape Sequences 16
Flow of Control 31
Expressions 59
Literals 62
Arithmetic Operators 62
Precedence 66
2.2 Variables 70
A Program with Variables 74
Increment/Decrement Operators 79
Pseudocode 103
Constants 108
Colors 179
Images 188
It was evident that there would soon be fighting now. 'Sir Garnet's
demands were that the king must release all European prisoners' (of whom
he had several), 'pay £200,000 for the cost of the war, and sign in presence
of our forces a treaty securing firmly the British Protectorate from future
aggression. Private warnings, however, and the information gained by Lord
Gifford and Major Russel in their scouting advance beyond the Prah, caused
Sir Garnet to distrust completely all the king's overtures for peace.'
On the night after the dusky ambassadors had departed, Tony Dalton
had command of an out-piquet in the direction of the enemy, and as the
sunset passed away he had, as in duty bound, examined carefully all the
ground in his vicinity.
The pipers of the Black Watch, playing tattoo in the hutted camp, had
made the mighty woods of the Prah re-echo to the notes of the 'Pibroch of
Donuil Dhu,' its last notes had died away in the leafy dingles, and as silence
stole over the plain Dalton gave way to thought.
The war in which he was engaged had been stigmatised as one against
savages, but they were savages who were far from being feeble foes; and if
(as a print of the time said) 'by honour and glory is meant the creditable
performance of duty at the call of the State, then is that just as applicable to
soldiers and sailors who fight savages as to those engaged in the more
showy scenes of European war. Her Majesty's troops do not pick and
choose either the enemies they have to encounter, or the regions wherein
their valour and fortitude are to be displayed; and it is unjust to shower
laurels on one set of men, while another, equally employed in defending our
empire, are deprived of due recognition.'
The night wind was whispering among rushes and reeds of wondrous
growth, or stirring the foliage of the cotton-trees, between which could be
seen the stars—constellations unknown in our northern hemisphere; and he
could hear the ripple of the Prah as it poured between its banks on its way
to St. Sebastian, the chirp of enormous insects, the twitter of brilliantly
plumaged birds, scared by the red gleams of the watch-fire. Round the latter
were the men of the picket, in their grey Ashanti uniforms and tropical
helmets, in groups, sitting or lying beside their piled rifles, the barrels of
which reflected the sheen of the flames.
The two tresses of hair he had got in such hot haste at Southampton
were many a time drawn forth from the breast-pocket of his Ashanti patrol-
jacket, to be tenderly unfolded, kissed, and replaced, for as yet no locket
had been procured in which to enshrine them, and such an ornament was
not likely to be procured among the reed-built wigwams of Coomassie.
Not far from him lay Jerry Wilmot, indulging in thoughts of his own—
wondering on what terms were now Bella Chevenix and haughty Lady Julia
Wilmot, his cold and heartless mother, who had seen him depart from his
father's house to face peril, disease, toil, and, it might be, death, so
callously!
Suddenly the sound of musketry close by, ringing out sharply upon the
air of the silent night, made the whole picket start to their feet.
'Stand to!' cried Dalton, drawing his sword. 'Unpile!' was the next order,
and the picket faced its line of sentries.
END OF THE SECOND VOLUME.
Updated editions will replace the previous one—the old editions will
be renamed.
1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside the
United States, check the laws of your country in addition to the terms
of this agreement before downloading, copying, displaying,
performing, distributing or creating derivative works based on this
work or any other Project Gutenberg™ work. The Foundation makes
no representations concerning the copyright status of any work in
any country other than the United States.
• You pay a royalty fee of 20% of the gross profits you derive from
the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”
• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.
1.F.
1.F.4. Except for the limited right of replacement or refund set forth in
paragraph 1.F.3, this work is provided to you ‘AS-IS’, WITH NO
OTHER WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.
Please check the Project Gutenberg web pages for current donation
methods and addresses. Donations are accepted in a number of
other ways including checks, online payments and credit card
donations. To donate, please visit: www.gutenberg.org/donate.
Most people start at our website which has the main PG search
facility: www.gutenberg.org.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
textbookfull.com