Ebooks File Introduction To Computing and Programming in Python, Global Edition Mark J. Guzdial All Chapters
Ebooks File Introduction To Computing and Programming in Python, Global Edition Mark J. Guzdial All Chapters
com
https://textbookfull.com/product/introduction-to-
computing-and-programming-in-python-global-
edition-mark-j-guzdial/
https://textbookfull.com/product/a-concise-introduction-to-
programming-in-python-second-edition-mark-j-johnson/
textbookfull.com
https://textbookfull.com/product/introduction-to-scientific-
programming-with-python-joakim-sundnes/
textbookfull.com
https://textbookfull.com/product/bite-size-python-an-introduction-to-
python-programming-1st-edition-april-speight/
textbookfull.com
https://textbookfull.com/product/values-political-action-and-change-
in-the-middle-east-and-the-arab-spring-1st-edition-mansoor-moaddel/
textbookfull.com
https://textbookfull.com/product/data-deduplication-for-data-
optimization-for-storage-and-network-systems-1st-edition-daehee-kim/
textbookfull.com
https://textbookfull.com/product/slavery-in-the-islamic-world-its-
characteristics-and-commonality-mary-ann-fay/
textbookfull.com
Fractional Modeling and Controller Design of Robotic
Manipulators: With Hardware Validation Abhaya Pal Singh
https://textbookfull.com/product/fractional-modeling-and-controller-
design-of-robotic-manipulators-with-hardware-validation-abhaya-pal-
singh/
textbookfull.com
Introduction to
Computing and
Programming
TM
in Python
A MULTIMEDIA APPROACH
Fourth Edition
Global Edition
MICROSOFT AND/OR ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THE INFORMATION
CONTAINED IN THE DOCUMENTS AND RELATED GRAPHICS PUBLISHED AS PART OF THE SERVICES FOR ANY PURPOSE. ALL SUCH
DOCUMENTS AND RELATED GRAPHICS ARE PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND. MICROSOFT AND/OR ITS
RESPECTIVE SUPPLIERS HEREBY DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THIS INFORMATION,
INCLUDING ALL WARRANTIES AND CONDITIONS OF MERCHANTABILITY, WHETHER EXPRESS, IMPLIED OR STATUTORY, FITNESS
FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL MICROSOFT AND/OR ITS RESPECTIVE
SUPPLIERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF INFORMATION AVAILABLE FROM THE SERVICES. THE
DOCUMENTS AND RELATED GRAPHICS CONTAINED HEREIN COULD INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL
ERRORS. CHANGES ARE PERIODICALLY ADDED TO THE INFORMATION HEREIN. MICROSOFT AND/OR ITS RESPECTIVE SUPPLIERS
MAY MAKE IMPROVEMENTS AND/OR CHANGES IN THE PRODUCT(S) AND/OR THE PROGRAM(S) DESCRIBED HEREIN AT ANY TIME.
PARTIAL SCREEN SHOTS MAY BE VIEWED IN FULL WITHIN THE SOFTWARE VERSION SPECIFIED.
The rights of Mark J. Guzdial and Barbara Ericson to be identified as the authors of this work have been asserted by them in accordance with the
Copyright, Designs and Patents Act 1988.
Authorized adaptation from the United States edition, entitled Introduction to Computing and Programming in Python™ : A Multimedia Approach, Fourth
Edition, ISBN 9780134025544, by Mark J. Guzdial and Barbara Ericson published by Pearson Education © 2016.
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic,
mechanical, photocopying, recording or otherwise, without either the prior written permission of the publisher or a license permitting restricted copying in
the United Kingdom issued by the Copyright Licensing Agency Ltd, Saffron House, 6−10 Kirby Street, London EC1N 8TS.
All trademarks used herein are the property of their respective owners. The use of any trademark in this text does not vest in the author or publisher any
trademark ownership rights in such trademarks, nor does the use of such trademarks imply any affiliation with or endorsement of this book by such owners.
A catalogue record for this book is available from the British Library
10 9 8 7 6 5 4 3 2 1
1 INTRODUCTION 25
1 Introduction to Computer Science and Media
Computation 27
1.1 What Is Computer Science About? 27
1.2 Programming Languages 30
1.3 What Computers Understand 33
1.4 Media Computation: Why Digitize Media? 35
1.5 Computer Science for Everyone 37
1.5.1 It’s About Communication 37
1.5.2 It’s About Process 37
1.5.3 You Will Probably Need It 38
2 Introduction to Programming 42
2.1 Programming Is About Naming 42
2.1.1 Files and Their Names 44
2.2 Programming in Python 45
2.3 Programming in JES 46
2.4 Media Computation in JES 47
2.4.1 Showing a Picture 51
2.4.2 Playing a Sound 54
2.4.3 Naming Values 54
2.5 Making a Program 57
2.5.1 Functions: Real Math-Like Functions That Take
Input 61
6 Contents
2 SOUND 225
7 Modifying Sounds Using Loops 227
7.1 How Sound Is Encoded 227
7.1.1 The Physics of Sound 227
7.1.2 Investigating Different Sounds 230
7.1.3 Encoding the Sound 235
7.1.4 Binary Numbers and Two’s Complement 236
7.1.5 Storing Digitized Sounds 237
7.2 Manipulating Sounds 239
7.2.1 Open Sounds and Manipulating Samples 239
7.2.2 Using the JES MediaTools 242
7.2.3 Looping 243
7.3 Changing the Volume of Sounds 244
8 Contents
4 MOVIES 407
14 Creating and Modifying Movies 409
14.1 Generating Animations 410
14.2 Working with Video Source 419
14.2.1 Video Manipulating Examples 419
14.3 Building a Video Effect Bottom-Up 423
15 Speed 430
15.1 Focusing on Computer Science 430
15.2 What Makes Programs Fast? 430
15.2.1 What Computers Really Understand 431
15.2.2 Compilers and Interpreters 432
15.2.3 What Limits Computer Speed? 436
15.2.4 Does It Really Make a Difference? 438
15.2.5 Making Searching Faster 441
15.2.6 Algorithms That Never Finish or Can’t Be Written 443
15.2.7 Why Is Photoshop Faster than JES? 444
15.3 What Makes a Computer Fast? 444
15.3.1 Clock Rates and Actual Computation 445
15.3.2 Storage: What Makes a Computer Slow? 446
15.3.3 Display 447
Contents 11
APPENDIX 506
A Quick Reference to Python 506
A.1 Variables 506
A.2 Function Creation 507
A.3 Loops and Conditionals 507
A.4 Operators and Representation Functions 508
A.5 Numeric Functions 509
A.6 Sequence Operations 509
A.7 String Escapes 509
12 Contents
Bibliography 512
Index 515
Preface for the
Fourth Edition
We started Media Computation in the of Summer 2002, and taught it for the first time
in Spring 2003. It’s now over ten years later, which is a good time to summarize the
changes across the second, third, and fourth editions.
Media Computation has been used successfully in an undergraduate course at Geor-
gia Tech for the last dozen years. The course continues to have high retention rates (over
85% of students complete the class with a passing grade), and is majority female. Both
students and teachers report enjoying the course, which is an important recommendation
for it.
Researchers have found that Media Computation works in a variety of contexts.
The University of Illinois-Chicago had the first Media Computation paper outside of
Georgia, and they showed how switching to MediaComp improved their retention
rates in classes that were much more diverse than those at Georgia Tech [41]. The
University of California-San Diego adopted Media Computation as part of a big change
in their introductory course, where they also started using pair-programming and peer
instruction. Their paper at the 2013 SIGCSE Symposium showed how these changes
led to dramatic improvements in student retention, even measured a year later in the
Sophomore year. The paper also won the Best Paper award at the conference [27].
It’s been particularly delightful to see Media Computation adopted and adapted for
new settings, like Cynthia Bailey Lee’s creation of a MATLAB Media Computation
curriculum [12].
Mark wrote a paper in 2013, summarizing ten years of Media Computation research.
Media Computation does often improve retention. Our detailed interview studies with
female students supports the claim that they find the approach to be creative and engag-
ing, and that’s what keeps the students in the class. That paper won the Best Paper award
at the 2013 International Computing Education Research (ICER) Conference [33].
• Let the students be creative. The most successful Media Computation classes
use open-ended assignments that let the students choose what media they use.
For example, a collage assignment might specify the use of particular filters and
compositions, but allow for the student to choose exactly what pictures are used.
These assignments often lead to the students putting in a lot more time to get just
the look that they wanted, and that extra time can lead to improved learning.
14 Preface for the Fourth Edition
• Let the students share what they produce. Students can produce some beautiful
pictures, sounds, and movies using Media Computation. Those products are more
motivating for the students when they get to share them with others. Some schools
provide online spaces where students can post and share their products. Other
schools have even printed student work and held an art gallery.
• Code live in front of the class. The best part of the teacher actually typing in code
in front of the class is that nobody can code for long in front of an audience and
not make a mistake. When the teacher makes a mistake and fixes it, the students
see (a) that errors are expected and (b) there is a process for fixing them. Coding
live when you are producing images and sounds is fun, and can lead to unexpected
results and the opportunity to explore, “How did that happen?”
• Pair programming leads to better learning and retention. The research results on
pair programming are tremendous. Classes that use pair programming have better
retention results, and the students learn more.
• Peer instruction is great. Not only does peer instruction lead to better learning
and retention outcomes, but it also gives the teacher better feedback on what the
students are learning and what they are struggling with. We strongly encourage
the use of peer instruction in computing classes.
• Worked examples help with creativity learning. Most computer science classes
do not provide anywhere nearly enough worked-out examples for students to
learn from. Students like to learn from examples. One of the benefits of Media
Computation is that we provide a lot of examples (we’ve never tried to count the
number of for and if statements in the book!), and it’s easy to produce more
of them. In class, we do an activity where we hand out example programs, then
show a particular effect. We ask pairs or groups of students to figure out which
program generated that effect. The students talk about code, and study a bunch of
examples.
AP CS PRINCIPLES
The Advanced Placement exam in CS Principles1 has now been defined. We have
explicitly written the fourth edition with CS Principles in mind. For example, we show
how to measure the speed of a program empirically in order to contrast two algorithms
(Learning Objective 4.2.4), and we explore multiple ways of analyzing CSV data from
the Internet (Learning Objectives 3.1.1, 3.2.1, and 3.2.2).
Overall, we address the CS Principles learning objectives explicitly in this book as
shown below:
• In Big Idea I: Creativity:
• LO 1.1.1: . . . use computing tools and techniques to create artifacts.
• LO 1.2.1: . . . use computing tools and techniques for creative expression.
1
http://apcsprinciples.org
Preface for the Fourth Edition 15
ACKNOWLEDGMENTS
Our sincere thanks go out to all our reviewers and bug-finders:
• At the top of the list is Susan Schwarz of the US Military Academy at West Point.
Susan runs a large course with many instructors, and pays careful attention to
what’s going in all of the sections of the course. She turned that attention on
the third edition of this book. She caught many bugs, and gave us lots of useful
feedback. Thanks, Susan!
2
http://home.cc.gatech.edu/mediaComp and http://www.mediacomputation.org
Preface for the Fourth Edition 17
• Our other bug finders for the book were John Rutkiewicz, U. Massachusetts–
Dartmouth; Brian Dorn, U. Nebraska–Omaha; Dave Largent, Ball State Univer-
sity; Simon, University of Newcastle; Eva Heinrich, Massey University; Peter
J. DePasquale, The College of New Jersey, and Bill Leahy, Georgia Institute of
Technology.
• Matthew Frazier, North Carolina State University, worked with us in the summer
of 2014 to create a new version of JES – fixing many bugs, and improving JES
considerably.
• We are grateful for the feedback from our book reviewers for the 4th edition:
Andrew Cencini, Bennington College; Susan Fox, Macalester College; Kristin
Lamberty, University of Minnesota-Morris; Jean Smith, Technical College of the
Lowcountry; and William T. Verts, University of Massachusetts-Amherst.
• We are grateful for the input from our book reviewers for the 3rd edition, too:
Joseph Oldham, Centre College; Lukasz Ziarek, Purdue University;Joseph
O’Rourke, Smith College; Atul Prakash, University of Michigan; Noah D. Bar-
nette, Virginia Tech; Adelaida A. Medlock, Drexel University; Susan E. Fox,
Macalester College; Daniel G. Brown, University of Waterloo; Brian A. Malloy,
Clemson University; Renee Renner, California State University, Chico.
(as they tell us in surveys and interviews [6, 18]). The relevant context is part of the
explanation for the success we have had with retention in the Georgia Tech course for
which this book was written.
The late entrance of abstraction isn’t the only unusual ordering in this approach. We
start using arrays and matrices in Chapter 3, in our first significant programs. Typically,
introductory computing courses push arrays off until later, because they are obviously
more complicated than variables with simple values. A relevant and concrete context
is very powerful [19]. We find that students have no problem manipulating matrices of
pixels in a picture.
The rate of students withdrawing from introductory computing courses or receiving
a D or F grade (commonly called the WDF rate) is reported in the 30–50% range or
even higher. A recent international survey of failure rates in introductory computing
courses reported that the average failure rate among 54 U.S. institutions was 33% and
among 17 international institutions was 17% [24]. At Georgia Tech, from 2000 to 2002,
we had an average WDF rate of 28% in the introductory course required for all majors.
We used the first edition of this text in our course Introduction to Media Computation.
Our first pilot offering of the course had 121 students, no computing or engineering
majors, and two-thirds of the students were female. Our WDF rate was 11.5%.
Over the next two years (Spring 2003 to Fall 2005), the average WDF rate at Georgia
Tech (across multiple instructors, and literally thousands of students) was 15% [29].
Actually, the 28% prior WDF rate and 15% current WDF rate are incomparable, since
all majors took the first course and only liberal arts, architecture, and management
majors took the new course. Individual majors have much more dramatic changes.
Management majors, for example, had a 51.5% WDF rate from 1999 to 2003 with the
earlier course, and had a 11.2% failure rate in the first two years of the new course [29].
Since the first edition of this book was published, several other schools have adopted
and adapted this approach and evaluated their result. All of them have reported similar,
dramatic improvements in success rates [4, 42].
Further, it gives us the opportunity to point out that the same algorithm can have
similar effects in different media (e.g., scaling a picture up or down and shifting a
sound higher or lower in pitch are the same algorithm). But it could certainly be
skipped to save time.
• Chapter 12 (on movies) introduces no new programming or computing concepts.
While motivational, movie processing could be skipped to save time.
• We recommend getting to at least some of the chapters in the last unit, in order to
lead students into thinking about computing and programming in a more abstract
manner, but clearly not all of the chapters have to be covered.
TYPOGRAPHICAL NOTATIONS
Examples of Python code look like this: x = x + 1. Longer examples look like this:
def helloWorld():
print "Hello, world!"
When showing something that the user types in with Python’s response, it will have
a similar font and style, but the user’s typing will appear after a Python prompt (>>>):
>>> print 3 + 4
7
User interface components of JES (Jython Environment for Students) will be spec-
ified using a small caps font, like Save menu item and the Load button.
There are several special kinds of sidebars that you’ll find in the book.
INSTRUCTOR RESOURCES
The instructor resources are available on the Pearson Education’s Instructor Resource
Center at www.pearsonglobaleditions.com/guzdial:
• PowerPoint Presentation slides
ACKNOWLEDGMENTS
Our sincere thanks go out to the following:
• Jason Ergle, Claire Bailey, David Raines, and Joshua Sklare, who made the initial
version of JES with surprising quality in an amazingly short amount of time. Over
the years, Adam Wilson, Larry Olson, Yu Cheung (Toby) Ho, Eric Mickley, Keith
McDermott, Ellie Harmon, Timmy Douglas, Alex Rudnick, Brian O’Neill, and
William Fredrick (Buck) Scharfnorth III have made JES into the useful and still
understandable tool that it is today.
• Adam Wilson built the MediaTools that are so useful for exploring sounds and
images and processing video.
• Andrea Forte, Mark Richman, Matt Wallace, Alisa Bandlow, Derek Chambless,
Larry Olson, and David Rennie helped build course materials. Derek, Mark, and
Matt created many example programs.
• There were several people who really made the effort come together at Georgia
Tech. Bob McMath, Vice-Provost at Georgia Tech, and Jim Foley, Associate Dean
for Education in the College of Computing, invested in this effort early on. Kurt
Eiselt worked hard to make this effort real, convincing others to take it seriously.
Janet Kolodner and Aaron Bobick were excited and encouraging about the idea
of media computation for students new to computer science. Jeff Pierce reviewed
Preface to the First Edition 23
and advised us on the design of the media functions used in the book. Aaron
Lanterman gave me lots of advice on how to convey the digital material content
accurately. Joan Morton, Chrissy Hendricks, David White, and all the staff of the
GVU Center made sure that we had what we needed and that the details were
handled to make this effort come together. Amy Bruckman and Eugene Guzdial
bought Mark time to get the final version completed.
• We are grateful to Colin Potts and Monica Sweat who have taught this class at
Georgia Tech and given us many insights about the course.
• Charles Fowler was the first person outside of Georgia Tech willing to take the
gamble and trial the course in his own institution (Gainesville College), for which
we’re very grateful.
• The pilot course offered in Spring 2003 at Georgia Tech was very important in
helping us improve the course. Andrea Forte, Rachel Fithian, and Lauren Rich did
the assessment of the pilot offering of the course, which was incredibly valuable in
helping us understand what worked and what didn’t. The first teaching assistants
(Jim Gruen, Angela Liang, Larry Olson, Matt Wallace, Adam Wilson, and Jose
Zagal) did a lot to help create this approach. Blair MacIntyre, Colin Potts, and
Monica Sweat helped make the materials easier for others to adopt. Jochen Rick
made the CoWeb/Swiki a great place for CS1315 students to hang out.
• Many students pointed out errors and made suggestions to improve the book.
Thanks to Catherine Billiris, Jennifer Blake, Karin Bowman, Maryam Doroudi,
Suzannah Gill, Baillie Homire, Jonathan Laing, Mireille Murad, Michael Shaw,
Summar Shoaib, and especially Jonathan Longhitano, who has a real flair for
copyediting.
• Thanks to former Media Computation students Constantino Kombosch, Joseph
Clark, and Shannon Joiner for permission to use their snapshots from class in
examples.
• The research work that led to this text was supported by grants from the National
Science Foundation—from the Division of Undergraduate Education, CCLI pro-
gram, and from the CISE Educational Innovations program. Thank you for the
support.
• Thanks to computing students Anthony Thomas, Celines Rivera, and Carolina
Gomez for allowing us to use their pictures.
• Finally but most important, thanks to our children Matthew, Katherine, and Jennifer
Guzdial, who allowed themselves to be photographed and recorded for Mommy
and Daddy’s media project and who were supportive and excited about the class.
3
http://www.ecepalliance.org
Random documents with unrelated
content Scribd suggests to you:
A császár szeme könnyes volt a méltóságos, szép kijelentés
után, és reszkető kézzel simogatta meg leánya szőke fejét, aki sírva
rejtette zsebkendőjébe arcát. Ez már sok volt a lieber Papának és
megveregette a síró asszony vállát:
– Na nu Luis’ na nu – mondta, aztán zsebébe nyúlt, kivette az
illatszeres üvegcsét és átadta Mária Lujzának. – Nézd meg, mit
hoztam neked, a legjobb, amit valaha csináltam. Na, mit szólsz
hozzá?
– Köszönöm, lieber Papa – szipogta a császárné és
megvigasztalódva csókolt kezet fejedelmi atyjának. Ki is akarta
kísérni, de a császár nem engedte:
– Bleib nur, du kriegst auch ’nen Schnupfen.
Ferenc császár lement a lépcsőn és az előcsarnokban
mégegyszer találkozott unokájával.
A kis fiú mosolyogva szaladt nagyapja felé. Kedves, karcsú
gyermek volt, hosszú, szőke fürtök repkedtek feje körül. Ma világos
csíkos, hosszú nadrágot viselt, fehér mellényt, sötétzöld frakkocskát,
magas gallért, szoros, fekete selyemnyakkendőt és kis kivágott
lakkcipőt. Kipirulva jött a kertből esti sétája után és Ferenc császár
egy pillanatra kedvtelve szorította térdéhez.
– Jó éjszakát, Franzl – mondta gyengéden.
A fiucska visszaszaladt Montesquiou grófnéhoz, a császár utána
nézett és akkor az oszlop mellett egy halavány leányt látott állni, aki
mélyen meghajolt az uralkodó előtt.
Őfelsége kegyesen bólintott és egész úton hazafelé azon
gondolkozott, hogy hol is látta ő már ezt a fiatal teremtést, de nem
jutott eszébe. Ferenc császár már nem emlékezett Müller
Franciskára.
Franciska térde remegett, mikor az uralkodó távozása után
felment a lépcsőn, még a karfába is bele kellett fogódznia, hogy el
ne essék a váratlan találkozás után.
– Mi baja, gyermekem? – kérdezte a grófné.
– Semmi, semmi, – felelte halkan, elfogultan Franciska – sokat
szaladgáltunk a kis felséggel, elfáradtam.
A grófné megfogta a leány kezét:
– Milyen hideg a keze. Jöjjön, Mademoiselle, pihenje ki magát
nálam. Adok egy csésze teát és kap hozzá süteményt is.
– Köszönöm, grófné, Őfelségét kell most felöltöztetnem estére,
de később nagyon szívesen meglátogatom, ha megengedi.
– Milyen csinos ruhája van megint – mondta Mária Lujza a
belépő Franciskának.
– Felséged adta a mult héten.
– A zöldcsíkos atlaszruhámból csinálta? De hisz azon nem volt
rajta a sok rózsaszín.
– A bodrokat egy régi kendőből szabtam, felség.
– Az én számomra sohasem talál ki ilyen szépet – mondta
duzzogva Mária Lujza.
Franciska csendesen mosolygott:
– Reménylem, ma meg lesz elégedve, felséged.
– Új ruhám lesz? Milyen? – Az ex-császárné boldogan kapta
magára sálját, átsietett öltözőszobájába és leült nagy tükre elé.
– Ma nagyon szép akarok lenni, Franciska, – mondta dorombolva
mint egy kényes macska – nagyon szép.
Esténként így öltöztette Franciska Napoleon feleségét, Neipperg
gróf számára. Mária Lujza felfedezte tehetségét és nehéz próbára
tette találékonyságát. Mindennap valami újat akart és semmi sem
volt elég szép! Franciskának tetszett a játék, a franciák
császárnéjának ruhatára kincsesbánya volt, csipkék, selymek,
szalagok, prémek tömege, csupa öröm tarka képzelete számára.
Rajzolt ruhákat, megálmodta a színek összhangját, a kastély régi
képeitől kért tanácsot és az új divatformák közé belelopta letűnt
századok asszonyainak szépségét. Ügyes kezek fejtették szét a
megúnt ruhákat és varrták meg újra, úgy, amint az óbudai aranyhajú
leány szeszélyes képzelete parancsolta.
Mária Lujza hiú lelke egész melegével ragaszkodott
Franciskához, az önállótlan asszony szemében minden ruha szép
volt, amit máson látott és megúnta mindjárt, amit egyszer viselt.
Franciska megfésülte úrnőjét és míg elrendezte arca körül fürteit,
Mária Lujza minduntalan belebabrált gödrös ujjacskáival.
– Oh, így nem lesz jó – nyögte panaszosan.
– Bízza rám, felség, – vigasztalta Franciska – ha végül sem
tetszik, majd újra csinálom. – És mélyen homlokába fésülte göndör
haját, hogy még fülét is elfedték a szőke csigák.
– Ilyet még sohasem láttam, ez nem szép – jelentette ki a
császárné.
– Türelem, felség, türelem – mosolygott a leány, aztán behozatta
a komornával az új ruhát.
Mária Lujza odapillantott:
– Zöld? – szólott csalódottan.
– Zöld, felség – ismételte büszkén Franciska.
– Nekem nem áll jól a zöld szín, Napoleon mindig mondta.
Franciska arca lángbaborult e név hallatára és halkan,
meggyötört hangon válaszolt:
– De a gróf kedvenc színe a zöld, amint felségedtől hallottam.
Most Mária Lujza arca is piros lett és némán tűrte, hogy ráadják a
puha sötétzöld bársonyruhát.
– Csak akkor nézzen a tükörbe, felség, ha elkészültem – kérte
Franciska.
Mikor aztán végre megbámulhatta magát, Mária Lujza elámult
saját szépségének láttára.
Hermelinszegély tompította a ruha színét a nyak körül és
lehúzódott elől dupla sorban a ruha szegélyéig, az övet pedig egy
arany domborműves csat tartotta össze. Hermelinnel szegett apró,
zöld bársonysapkát helyezett szőke fejére Franciska, mint egy
szeszélyes fejéket és elől, a ruha mély hegyben végződő
kivágásába, könnyű, fehér csipkebetétet erősített.
– Igazán gyönyörű – mondta a császárné. – No és az ékszer?
– Gyöngyöket teszünk felséged nyakára, csak a hosszú, fehér
gyöngysorát és arra kapcsoljuk fehér legyezőjét.
Kocsi gördült a kastély elé, a császárné összerezdült és keze
remegett, amint megsimogatta az előtte térdelő Franciska fejét.
– A gróf már itt van – suttogta és gyorsan tűnt el az ajtó nehéz
függönye mögött.
Franciska ott maradt térdepelve, összekulcsolta rózsaszínű
selyem bodrokban pihenő kezét, egy szomorú sóhajt küldve a hűtlen
asszony után.
Három napja mondta meg neki Montesquiou grófné, hogy
Napoleon felesége Neipperg Ádám grófot szereti, azt a hetyke,
kékszemű, fiatal generálist, aki minden este kijön hozzá, vele tölti az
esetét, aki a fekete kötést viseli hiányzó szemén, akit Franciska
egyszer látott az ex-császárné előszobájában, mikor lovagja
váratlanul látogatta meg délelőtt.
Azt is tudta Franciska, hogy Metternich választotta ki Mária Lujza
kísérőjének és tudta azt is, hogy a grófnak felesége van és négy
gyermeke. Most már mindent tudott, de jobban szerette volna, ha
nem tud meg semmit, mert a dolog szomorú volt és nagyon csúnya.
A komorna elhagyta a szobát, Franciska egyedül maradt és
amint ott térdelt a tükör előtt, hullani kezdtek könnyei. Sűrűn hullottak
zöldcsíkos ruhájának selymére, összekulcsolt kezére és arcán égő
utak maradtak nyomukban.
Miért sírt? Szerette Schönbrunnt, szerette életének mosolygó
napjait, melyek elfelejttettek vele mindent, de most hirtelen rászakadt
egész nehéz bánata.
Mária Lujza jó volt hozzá, megsimogatta fejét az új ruhákért, az
egész udvar bámulta ügyes ujjait, a kis Napoleont senki sem tudta
úgy megnevettetni mint ő és kacagva gyönyörködött mindenki, ha
színes bábuival színházat játszott neki. Ő volt az egyetlen, kivel
Montesquiou grófné őszinte szót váltott, akit szeretett, kinek a
multról beszélt. Metternich herceg megcsókolta kezét, ha jött és
hízelgő szóval akarta megnyerni kegyeit. Szép volt, fiatal és mégis
olyan reménytelenül szomorú.
Megint csak vár, vár, maga sem tudja mit, vár, épen úgy, mint
Óbudán… Kapott ugyan apró sikereket, simogatást, sok hízelgő
szót, hogy elkábítsák remegő álmait, de ezek mégis csak egyre
kiszínesednek és hívják, csalogatják, nem tudja hová és nem tudja
merre…
Mária Lujzát öltözteti, aki egy Napoleont igyekezik elfeledni, ki a
franciák császárnéja volt, kinek sorsát az egész világ szeme leste,
de kinek fejét egyetlen gondolat sem gyötörte soha, életének nagy
fordulásai egyetlen érzést sem hagytak üres szívében és sohasem
törte szőke fejét semmi elérhetetlen vágynak bánata.
És ő itt térdel összekulcsolt kezekkel, a schönbrunni udvar szelíd
Franciskája, aki a világot szeretné lángra gyújtani, hogy diadalmasan
álljon meg egy pillanatra a nagy égésben, aki szerette volna
felkorbácsolni az emberiséget, hogy ott pusztuljon el a tombolásban,
aki Napoleont imádta és azt hitte egyszer, hogy hazaviszi hozzá a
feleségét.
Gyerekkorában, ha körülötte attól féltek, hogy a Duna áradni fog,
ő remegve leste, bár öntené el már a partokat, ha vihar volt, a
villámtól csak azt kívánta, hogy csapjon le és ha szekeren ült, azt
várta mindig, hogy bár bokrosodnának meg a lovak. Sorsát is
ilyennek képzelte és nem akarta elhinni, hogy az élete folyó, amely
elmossa a partokat, vihar, amely megtépázza a fákat, paripa, amely
lassan gázolja agyon szívét, de nem árad, nem csap le és nem
bokrosodik meg soha.
Nem volt érdemes eljönnöm Óbudáról, nem kellett volna
elhagynom az apámat, ez jutott eszébe, míg beletemette arcát
kezébe, a rózsaszínű bodrok közé. Egy pillanatig tartott csupán,
gyűlölte a multon való tünődést, útálta a visszanézéseket, lényének
egész őszinteségével cselekedett mindig, számára tehát nincs
megbánás.
Letörülte könnyeit és halk léptekkel, mint minden este, belépett a
Montesquiou grófné emlékekkel teli szobájába. Itt szerette a multat,
mert mese volt és a visszaemlékezés szebb idők története.
Mária Lujza esténként együtt étkezett kis udvarával és Neipperg
gróffal. A gróf szellemesen csevegett a vacsora alatt és vacsora után
zongorázott, aztán bókokat mondott a császárnénak halkan, hogy
sokszor elpirult és tekintete lágyan simult a generális szemébe.
– Hat hónap mulva a kedvesem lesz – mondta a gróf egyik
szeretőjének, mikor Mária Lujza támaszának és lovagjának szemelte
ki Ferenc császár.
Montesquiou grófné elhagyta a társaságot, mihelyt lehetett,
gyűlölte Neipperget, megvetette Mária Lujzát és ökölbe szorult a
keze, ha úrnője kedvesen csicseregte minden szó után:
– Ön mit gondol, gróf? Mit szól hozzá, tábornokom?
A grófné szobájába sietett, ahol Franciska várta türelmetlen
örömmel szegezve sötét szemét a belépőre.
– Ma soká jöttem, gyermekem, úgy-e? Bocsásson meg,
maradnom kellett és látnom…
A grófné hirtelen elhallgatott és szürke selyemruhája halkan
zizegett, míg leült aranyos karosszékébe, íróasztala elé. Az óra tizet
ütött, Franciska melléje kuporodott kis zsámolyára, a grófné pedig
aranyláncra erősített finomművű kulcsával kizárta fiókját és elővette
Napoleon képével díszített csatos könyvét. Az imperátor adta neki,
mikor rábízta kis fiát, hogy mindent beleírjon gyermekéről. A grófné
hűséges könyvvezető volt, feljegyzett mindent a kis Napoleonról, a
nagy Napoleonról, Mária Lujzáról, Franciaországról, mindent beleírt,
amit látott, tudott, amit szenvedett.
Kinyitotta a könyvet és elgondolkozva helyezte kezét a sűrűn
teleírt aranyszélű lapra:
– Látja, gyermekem, régen itt minden sor dicsőség volt, ha ma
este feljegyzem tapasztalataimat, gyalázat és szomorúság minden
betű. Most még zongoráznak a nagy szalonban! Hallja? Montebello
hercegnő hímez, a többiek sorban elköszönnek, aztán Montebello
hercegnőnek hirtelen elfogy a hímzőselyme, tegnap a rózsaszínű,
ma a kék, a zöld, a sárga, talán a vörös, néhány pillanatra távoznia
kell és akkor a gróf megcsókolja a császárnét. Így van, tudom,
bizonyosan tudom és fellázad bennem minden jobb érzés, ha
rágondolok. Mária Lujza könnyelmű, Montebello hercegnő gonosz,
sohasem szerette Napoleont és hatalmába kerítette a feleségét
egészen, kihasználta, kifosztotta és most odadobja ennek a
szélhámos Don Juannak, ennek a közönséges nőhódítónak,
asszonyfalónak… Csitt, legyen csendesen… a zongora
elhallgatott… most… most… most megcsókolja… Napoleon
feleségét Neipperg gróf.
– Január huszonhárom – olvasta csendesen. – 1814 január
huszonharmadikán látta őt utóljára Napoleon, a fiát se látta azóta és
nem is látja talán soha. Hogy kapaszkodott bele akkor ez az
asszony, hogy zokogott, ma pedig… Milyen nap volt az, Franciska,
életemnek legfájdalmasabb sejtelmekkel teli napja. A császárnak a
harctérre kellett mennie, hogy megvédje Franciaországot a
szövetségesek ellen, az apósa ellen, az egész világ ellen. Búcsúzott,
a Tuillériák nagy termében összegyűltek a párisi testőrség tisztjei. A
császár a miséről jövet megjelent Mária Lujzával és néhány pillanat
mulva beléptem én a kis Napoleonnal. A császár kézenfogta kis fiát
és feleségét, aztán megilletődve mondta a tisztikarnak:
– Önökre bízom őket, akik a legdrágábbak nekem a világon.
Lehet, hogy az ellenség Párisig nyomul, de ha ez be is következnék,
ne hagyják magukat, mert én segítségükre sietek. Úgy-e megvédik
őket? Megigérik, úgy-e?
– Vive l’Empereur! – kiáltották a tisztek.
A palota előtti nagy téren összegyűlt legénység meghallotta
kiáltásukat és egyszerre ezer meg ezer torok ismételte:
– Éljen a császár!
Hűséget esküdött neki mindenki, de ez már csak a mult
visszhangja volt, nem pedig a jövő ígérete. A császár elbúcsúzott
feleségétől, kis fiától, trónjától, Páristól, örökre.
Franciska szeme könnyes lett, kezét összekulcsolta a grófné
ölében, az ajka remegett, és megilletődve suttogta:
– Oh, Istenem!
– Ne sírjon, gyermekem, – mondta az öreg hölgy – egy ilyen
drámának kevés és kicsi minden könny. Napoleon tudta, mikor
elhagyott bennünket, hogy kockán van egész sorsa és reményei
között is számolt minden lehetőséggel, leszámolt az élettel, hívta a
halált, csak egytől félt, hogy a császárné és kis fia az ellenség
kezébe kerül, hogy Bécsbe viszik őket. Bármit, csak ezt ne. „Ami
engem illet, – irta – inkább fojtsák meg a fiamat, semhogy osztrák
herceget neveljenek belőle, különben ismerem a császárné jellemét,
bízom benne, ő is így gondolkozik, tudom.“ Mária Lujza?…
Nevetnem kell, ha rágondolok! A kis Napoleonnak Franzl a neve,
apja nincs, nagyapja van csupán és a nagyapja Ferenc császár.
Osztrák főherceg lesz belőle, osztrák főherceg, Franciska. Míg én itt
vagyok, addig vele van a nagy mult emléke is, de engem nem soká
fog tűrni Metternich, kényelmetlenül útját állom terveinek. Minden
főhercegi nevelésnek megvan Bécsben a maga Metternichje, aki
kicsinek, minél kisebbnek akarja a nagyokat, hogy annál
hatalmasabb legyen ő. Céljuk, hogy kiöljenek minden önálló
törekvést a hercegekből, minden igaz jellemvonást, hogy
szétmorzsolják egyéniségüket a sablon kipróbált őrlőjében. Mint
lassan színtelenedő labdát, dobják őket kézről-kézre tanítóik, hogy
mire felnőnek, mindegyik csak egy-egy szappanbuborék. Oh, kis
leányom, ökölbe szorul a kezem a tehetetlen bánattól, valahányszor
ezt a kis gyermeket látom.
A grófné kétségbeesetten kulcsolta össze kezét, olyan vad
szorításban, hogy Franciska ijedten nézett fel rá.
– És Napoleon nem tudja mindezt? A császár nem ír soha? –
kérdezte halkan.
– Eleinte sokszor írt, a császárné is felelt egyszer, aztán
megtiltották neki és ő belenyugodott könnyen. Napoleon újra írt,
választ várt, hírekért könyörgött… most már nem ír többé, vagy csak
nem jutnak el hozzánk sorai? Ki tudná azt? Mária Lujzát Neipperg
gróf megtanította felejteni… Nagyon szómorú az élet, édes
gyermekem.
– Szomorú.
Franciska sírt, a grófné ölébe hajtotta aranyos fejét, úgy siratta
Napoleont, saját magát, az egész világot.
XVI. FEJEZET.