E-reader Example 2

This contains a single run of the ereader.py program. User input is bolded.

$ python3 ereader.py

Since this is the first time you used it,
let's customize your Swindle...

Please enter you name: Malcom

Welcome to Malcom's Swindle v1.0!


1) Buy/See available books
2) See owned books
3) Read a book
4) Exit

Choice: 2

You don't own any books

1) Buy/See available books
2) See owned books
3) Read a book
4) Exit

Choice: 1

 1.       Alice in Wonderland by             Lewis Carroll (1865)
 2.    Mary Had a Little Lamb by        Sarah Josepha Hale (1830)
 3.                 Peter Pan by              J. M. Barrie (1922)
 4.       Pride and Prejudice by               Jane Austin (1813)
 5.          Romeo and Juliet by       William Shakespeare (1597)
 6.          The Time Machine by               H. G. Wells (1895)
 7.           Treasure Island by    Robert Louis Stevenson (1883)
 8.                   Ulysses by               James Joyce (1922)

Which book would you like to buy (0 to skip)? 8
You successfully purchased the book: Ulysses

1) Buy/See available books
2) See owned books
3) Read a book
4) Exit

Choice: 2

 1.                   Ulysses by               James Joyce (1922)

1) Buy/See available books
2) See owned books
3) Read a book
4) Exit

Choice: 3

 1.                   Ulysses by               James Joyce (1922)

Which book would you like to read (0 to skip)? 1





Ulysses by James Joyce


    -- I --



STATELY, PLUMP BUCK MULLIGAN CAME FROM THE STAIRHEAD, bearing a bowl of
lather on which a mirror and a razor lay crossed. A yellow dressinggown,
ungirdled, was sustained gently behind him by the mild morning air. He
held the bowl aloft and intoned:

--INTROIBO AD ALTARE DEI.

Halted, he peered down the dark winding stairs and called out coarsely:

Showing page 0 out of 1619

n (next); p (previous); q (quit): n


--Come up, Kinch! Come up, you fearful jesuit!

Solemnly he came forward and mounted the round gunrest. He faced about
and blessed gravely thrice the tower, the surrounding land and the
awaking mountains. Then, catching sight of Stephen Dedalus, he bent
towards him and made rapid crosses in the air, gurgling in his throat and
shaking his head. Stephen Dedalus, displeased and sleepy, leaned his arms
on the top of the staircase and looked coldly at the shaking gurgling
face that blessed him, equine in its length, and at the light untonsured
hair, grained and hued like pale oak.

Buck Mulligan peeped an instant under the mirror and then covered
the bowl smartly.

--Back to barracks! he said sternly.

He added in a preacher's tone:

--For this, O dearly beloved, is the genuine Christine: body and soul and

Showing page 1 out of 1619

n (next); p (previous); q (quit): n

blood and ouns. Slow music, please. Shut your eyes, gents. One moment. A
little trouble about those white corpuscles. Silence, all.

He peered sideways up and gave a long slow whistle of call, then paused
awhile in rapt attention, his even white teeth glistening here and there
with gold points. Chrysostomos. Two strong shrill whistles answered
through the calm.

--Thanks, old chap, he cried briskly. That will do nicely. Switch off the
current, will you?

He skipped off the gunrest and looked gravely at his watcher, gathering
about his legs the loose folds of his gown. The plump shadowed face and
sullen oval jowl recalled a prelate, patron of arts in the middle ages. A
pleasant smile broke quietly over his lips.

--The mockery of it! he said gaily. Your absurd name, an ancient Greek!

He pointed his finger in friendly jest and went over to the parapet,
laughing to himself. Stephen Dedalus stepped up, followed him wearily

Showing page 2 out of 1619

n (next); p (previous); q (quit): q

The bookmark for Ulysses was set to page 2

1) Buy/See available books
2) See owned books
3) Read a book
4) Exit

Choice: 4