Ultimate Python Programming 1st Edition Deepali Srivastava PDF Download
Ultimate Python Programming 1st Edition Deepali Srivastava PDF Download
https://ebookgate.com/product/ultimate-python-programming-1st-
edition-deepali-srivastava/
https://ebookgate.com/product/expert-python-programming-2nd-edition-
jaworski/
ebookgate.com
https://ebookgate.com/product/python-programming-4th-edition-singh-a/
ebookgate.com
https://ebookgate.com/product/black-hat-python-python-programming-for-
hackers-and-pentesters-1st-edition-seitz/
ebookgate.com
https://ebookgate.com/product/practical-maya-programming-with-
python-1st-edition-galanakis/
ebookgate.com
Core Python Programming 2nd Edition Wesley Chun
https://ebookgate.com/product/core-python-programming-2nd-edition-
wesley-chun/
ebookgate.com
https://ebookgate.com/product/programming-python-3rd-ed-edition-mark-
lutz/
ebookgate.com
https://ebookgate.com/product/learning-beaglebone-python-programming-
unleash-the-potential-of-beaglebone-using-python-1st-edition-hiam/
ebookgate.com
https://ebookgate.com/product/advanced-computer-programming-in-
python-1st-edition-karim-pichara/
ebookgate.com
https://ebookgate.com/product/python-programming-for-teens-1st-
edition-kenneth-a-lambert/
ebookgate.com
Cover
Ultimate
Python
ProgrammingLearn Python with 650+
programs, 900+ practice
questions, and 5 projects
Deepali Srivastava
logo
www.bpbonline.com
First Edition 2024
ISBN: 978-93-55516-558
The information contained in this book is true to correct and the best of
author’s and publisher’s knowledge. The author has made every effort to
ensure the accuracy of these publications, but publisher cannot be held
responsible for any loss or damage arising from any information in this
book.
www.bpbonline.com
Dedicated to
I am grateful to the BPB publication team for their guidance and support
provided during every step of the publishing journey. Special appreciation
goes to the editing team, layout team, and all other contributors involved in
bringing this book to life.
Preface
Python is a widely used general-purpose programming language. Its
popularity can be attributed to its simplicity and a rich set of powerful
features. The clean and intuitive syntax makes it an excellent choice for
novices, allowing them to grasp the fundamentals of programming quickly,
and the advanced features make it appealing to experienced programmers
too. It can run on various platforms, including Windows, macOS, and
Linux. Since it is an open-source software, it is freely available to all.
Python is easy to learn. You can start writing Python programs within a few
days. However, if you wish to leverage all the powerful features of Python,
a more in-depth exploration is required. The content in this book can assist
you in achieving that. This book includes 21 chapters that gradually
introduce new topics so learners can proceed at a sustainable pace. If you
are a beginner, start from the first chapter and go through all the chapters in
order, and work out the examples and exercises along the way. If you have
a working knowledge of Python, you can quickly browse through the initial
chapters and then randomly jump to topics that are new to you or that you
want to master. However, I would still recommend reading the chapters in
sequence to get the most out of the book. If you are transitioning from
some other language, you might be tempted to skip the initial information,
but I would suggest you go through all the basic details to avoid any
confusion later. Here is a brief summary of the chapters presented in the
book.
At the end of each chapter, you will find exercises, and their solutions are
provided at the end of the book. I would suggest that you try to solve these
exercises by yourself before looking at the solution. Solving exercises and
writing code will help you to internalize the concepts presented in the book.
By the end of this book, you will develop a strong foundation in core
Python skills and will get the ability to explore the vast range of
functionalities offered by the standard library and third-party libraries. As
you progress, you will continue to be amazed by the capabilities of Python
and the remarkable libraries available. With your newfound skills you can
venture into diverse fields like data science or machine learning. Moreover,
if this is the first programming language you are learning, equipped with
the foundation of programming concepts and problem-solving skills, you
can easily learn any other programming language.
After using this book as a tutorial to learn the language, you can always
refer to it as a handy resource whenever you need to recall or review any
concept and apply it to your work.
Happy programming!
Code Bundle and Coloured Images
Please follow the link to download the
https://rebrand.ly/z815rfg
We have code bundles from our rich catalogue of books and videos
available at https://github.com/bpbpublications. Check them out!
Errata
We take immense pride in our work at BPB Publications and follow best
practices to ensure the accuracy of our content to provide with an indulging
reading experience to our subscribers. Our readers are our mirrors, and we
use their inputs to reflect and improve upon human errors, if any, that may
have occurred during the publishing processes involved. To let us maintain
the quality and help us reach out to any readers who might be having
difficulties due to any unforeseen errors, please write to us at :
errata@bpbonline.com
Your support, suggestions and feedbacks are highly appreciated by the BPB
Publications’ Family.
Did you know that BPB offers eBook versions of every book published,
with PDF and ePub files available? You can upgrade to the eBook version
at www.bpbonline.com and as a print book customer, you are entitled to a
discount on the eBook copy. Get in touch with us at :
Piracy
If you come across any illegal copies of our works in any form on the
internet, we would be grateful if you would provide us with the location
address or website name. Please contact us at business@bpbonline.com
with a link to the material.
If there is a topic that you have expertise in, and you are interested in either
writing or contributing to a book, please visit www.bpbonline.com. We
have worked with thousands of developers and tech professionals, just like
you, to help them share their insights with the global tech community. You
can make a general application, apply for a specific hot topic that we are
recruiting an author for, or submit your own idea.
Reviews
Please leave a review. Once you have read and used this book, why not
leave a review on the site that you purchased it from? Potential readers can
then see and use your unbiased opinion to make purchase decisions. We at
BPB can understand what you think about our products, and our authors
can see your feedback on their book. Thank you!
Join the book’s Discord Workspace for Latest updates, Offers, Tech
happenings around the world, New Release and Sessions with the Authors:
https://discord.bpbonline.com
Table of Contents
1. 1. Introduction to Python
6. 1.6 IDLE
2. 2. Getting Started
1. 2.1 Identifiers
3. 2.3 Objects
8. 2.8 Operators
26. Exercise
3. 3. Strings
1. 3.1 Indexing
20. 3.20 String formatting using the format() method of string class
22. Exercise
18. 4.18 Using a list with functions from the random module
30. Exercise
1. 5.1 Dictionaries
6. 5.6 Getting all keys, all values, and all key-value pairs
22. Exercise
6. 6. Conditional Execution
1. 6.1 if statement
5. 6.5 Truthiness
9. Exercise
7. 7. Loops
9. Exercise
8. 8. Looping Techniques
12. Exercise
9. 9. Comprehensions
13. Exercise
25. Exercise
1. 11.1 Modules
20. Exercise
1. 12.1 Namespaces
3. 12.3 Scope
3. 13.3 Buffering
8. 14.8 Initializer
18. Exercise
11. Exercise
2. 16.2 Adding new methods and data members to the derived class
13. Exercise
1. 17.1 Iterables
2. 17.2 Iterators
14. Exercise
24. Exercise
16. Exercise
18. Exercise
11. Exercise
22. Solutions
23. Index
Introduction to Python 1
Click Yes if it asks for permission to make changes to your device. The
installation begins, and all the required Python files, along with the standard
library, will be installed on your system.
Figure 1.4: Installation in progress
After the installation is complete, the following pop-up box will appear. This
shows that Python is installed on your system. Click on Close to complete
the installation and exit the installer. The appearance of the images shown in
the screenshots may vary depending on the version of Python that you
choose to install.
Figure 1.5: Installation successful
To verify the installation, write cmd in the Start search menu to open the
command prompt window and type the command python --version.
If Python has been successfully installed on your system, it will show the
version of the Python installed. Now write python (all in lowercase) in the
command window. You will see a line with some text describing the Python
version, and after that, you will see a prompt with three greater-than signs
(>>>). This is the Python shell prompt. Write 8 + 2 and press Enter; you
will get the output as 10 on the next line. The prompt appears again; this
time, write print('Hello world'), and the text Hello world will
appear on the next line. This verifies that Python is up and working on your
system. On this interactive Python shell, you can execute single statements
of Python. To quit this Python shell and come back to your command
prompt, type quit() or exit() or press Ctrl-Z.
Figure 1.6: Verifying installation on the command line
You can also verify your installation by opening the Integrated Development
and Learning Environment application(IDLE), which is installed by default
with Python. To open IDLE, type idle or python in the Start search menu
and click on the IDLE app. If the installation is successful, IDLE will show
an interactive Python shell window in which you can type Python commands
at the shell prompt (>>>) and execute them.
Underneath
Lieth the remains
Of John, the son of
Robert Closs, who was
Interred Decr. 1st,
1805, aged 7 years.
Ar ben mynydd dydd-y-daith oî howyder
A che dodd y maith
Gadewais (gwelais goeg waith)
Drueni’r Byd ar unwaith.
Oerfel fu uchel a chos, i angau
Llyn ingol i’mddangos
Mantell niwl mewn tywyll nos
A dychryniad dechreunos.
CAPEL CURIG,
is in the parish of Llandegai. It derives its name from a man who
was canonized, and founded a chapel in this mountainous region.
He was the son of Llawdden Lluyddog, of Edinburgh. There are here
two lakes, and some tolerable fishing may be had, if you take a
boat; but from the banks it is quite useless to attempt it. From this
spot, excursions may be made to Llanberis, and
MOEL SIABOD,
from the summit of which a magnificent view is obtained of the
mountains of Snowdonia, of nine different lakes, and the sea beyond
Carnarvon. The distance from the inn to the apex of the mountain
does not exceed three miles and a half.
DOLWYDDELAN CASTLE,
situated about five miles from Capel Curig, and on the eastward side
of Moel Siabod, deserves notice. It is built upon a lofty rock, which
on one side is inaccessible. There are two square towers, and a
court in the middle. It is surrounded by mountains, and must in
ancient days have been a fortress of considerable importance. It is
said, Llewelyn the Great was born in the castle; and this fact is
sufficient to interest the stranger who is capable of appreciating and
feeling reverence for a hero, who so long struggled with unwearied
assiduity and unconquerable bravery for his native land, and who
fought and died in the sacred cause of liberty.
Within four miles of Capel Curig is an oval lake, of about three miles
in circumference, called Llyn Ogwen which must by no means be
overlooked. The scenery around is delightful and the waters are
well stored with excellent trout of fine flavour, and surpassing all
others in that respect, in the Carnarvonshire lakes.
At the western end of this lake, are the Falls of Benglog, (being
three in number and upwards of one hundred feet in height) from
whence the waters take their course through Beavers’ Hollow, a wild
and romantic glen, rocky and barren.
Powell, in his History of North Wales, says, “In Tevi, above all the
rivers in Wales, were, in Giraldus’s time, a great number of castells,
which may be Englished beavers, and are called in Welsh avanc,
which name onlie remaineth in Wales at this day, but what it is, very
few can tell. It is a beast not much unlike an otter, but that it is
bigger, all hearie saving the taile, which is like a fish taile as broad as
a man’s hand. This beast useth as well the water as the land; and
hath a voice, sharp teeth, and biteth cruellie till he perceives the
bones cracke. * * * * He that will learn what strong nests they
make, which Giraldus calleth castells, which they build upon the face
of the water with great bowes, which they cut with their teeth, and
how some lie upon their backs holding the wood with their fore feet,
which the other draweth with a crosse stick, the which he holdeth in
his mouth, to the water’s side, and other particularities of their
natures, let him read Giraldus in his Topographie of Wales.”
In this stream are found the fresh water muscle, which the country
people call cregyn diluw, i.e. shells of the deluge, supposed to have
been brought into it by Noah’s flood.
On the left of the lake are the Crags of Trivaen, huge shattered
ridges, which overhang the pool and keep it in continual shadow,
while the sides of Braich-ddu slope gradually to the lake’s margin.
The Francon Mountains, in the distance, are astonishing, and
altogether this lake scene may be considered the finest in
Carnarvonshire.
A gentleman, in the winter of 1831, was driving along the road
which skirts the borders of the lake, when upwards of a thousand
tons of rock fell from the heights of Benglog, a little below the Falls,
into Nant Francon, a short time after he had passed them, and he
beheld one portion roll into the valley and river, while the other
rested upon the road he had just travelled, rendering it impossible
for any carriage to proceed by that route, until the obstruction was
removed.
A mile distant from Llyn Ogwen is another lake, well worthy of being
visited, which lies in a deep hollow of the Glyder Mountains, called
LLYN IDWAL,
where the gloomy horror of the scenery is most appalling;
particularly the terrific chasm of Twll Du, or the Black Cleft. This
spot derived its name from the following crime which was
perpetrated here.
Prince Owain Gwynedd, who reigned in the twelfth century, had a
favourite called Nevydd Hardd, to whose care he intrusted his son
Idwal, and who betraying his trust, commanded his son Dunawt to
destroy the young prince, a crime which he too faithfully obeyed,
perpetrating the cruel deed at this place. But, being discovered,
Nevydd and his posterity were degraded from the rank of nobles to
bondsmen, and Rhun, the son of Dunawt, who again became
possessed of the property of his ancestors, granted the ground upon
which the Church of Llanrwst now stands, as an expiatory gift for
the foul crime imputed to his father. The grave of Idwal is still
pointed out by the inhabitants, close to the lake.
The scenery around is well calculated to inspire fear in the timid, as
being adapted to the committal of atrocity of any kind. Bleak, black,
desolate, and stern, it thrills the beholder with an indescribable
sensation of terror.
The lake is well stored with fish, of a darker colour than those in the
Ogwen, and of a less delicate flavour. These lakes are in the parish
of Llan Tegai, so called from its patron saint Tegai, the son of Ithel
Hael, a nobleman of Armorica, brother to Credivael and Flewin, who
built Penmynydd and Llanflewin, in Anglesey, about the year 636.
See Rowland’s Mona Antiqua Rest. p. 189.
After a delightful day’s ramble amongst this wild and sublime
scenery, I returned to the inn at Capel Curig, and on the following
morning took the road to Llanrwst, which in a short time becomes
particularly interesting. The dark and comfortless sterility is
exchanged for a delightful valley, with luxuriant woods, which stretch
to the summit of the hills upon either side; and near the two mile
stone is one of the most picturesque cottages imaginable, placed on
the side of a hill above the bridge, which crosses the river Llugwy,
and gives additional beauty to the romantic dell.
Half a mile beyond is an Observatory, which stands upon the highest
point of a towering cliff, a portion of whose summit is clothed with
purple heath, and the remainder presents a face of grey barren rock,
while beneath a forest of rich foliage creeps from its base far up the
craggy sides.
Within a mile of this place are the celebrated waterfalls, called
RHAIADR Y WENNOL,
i.e. the Cataract of the Swallow—a fall of about sixty feet in width.
The river, at the top of the first fall, flows in an unbroken sheet, but
soon becomes dispersed in various streams that dash and struggle
through the impending masses of rock, charming the ear with their
complicated roar. At the second fall, it rushes in a collected volume
into the boiling vortex, from whence, at the third, it is dispersed in
spray. A small wicket gate by the road side, leads to a footpath
through the grounds to the Falls, where the visitor cannot fail to find
an adequate reward for his digression. The old oak trees that
overhang the ravine are beautifully grouped. On one side, a large
rock rises perpendicularly nearly 500 feet, and the earth is clothed
with velvet moss and decked with wild flowers. Fancy would picture
just such a retreat, for a wandering sylph! while the rays of light,
darting through the greenwoods, remind us of the flittings of Sir
John Wynne’s ghost, which was said to haunt this glen for many
years, but is now laid at rest in the depths of the Lower Fall.
Journeying onward, I reached the village of
BETTWS Y COED,
which, being translated, is the Station in the Wood; and a most
delightful station it is. The Shrewsbury and Holyhead road runs
through it, and the junction of the Llugwy and the Conwy rivers is at
no great distance. The church is a venerable structure, and contains
an old monument, erected to the memory of Gruffydd, the son of
David Gôch, who was a natural son of David, the brother of
Llewelyn, the last Prince of Wales. He died in the fourteenth
century, and a stone statue of him is in a recess on the north side of
the church, with this inscription: “Hic jacet Gruffydd ap Davyd Gôch,
agnus Dei miserere mei.”
At about a mile from Bettws is an iron bridge of one arch, which
carries the Holyhead road over the river Conwy. Its span is 105 feet,
and it is called the Waterloo Bridge, from its having been erected in
the year that tremendous battle was fought. But the principal object
is
PONT-Y-PAIR,
the Bridge of the Caldron. It has four arches, and the natural rock
supplies it with piers, that seem to defy the efforts of time or the
fury of the waters. Immediately above the bridge is the fall and
salmon-leap. The river rolls and plunges into a deep reservoir
below. The grandeur of the scene during the floods, I was informed,
surpasses imagination, and unfortunately for me, the heat of the sun
had dried them up, when I visited this celebrated spot.
For this bridge the inhabitants are indebted to one Howell, a mason,
who resided at Penllyn in the year 1468; and having occasion to
attend the assizes at Conway, he was unexpectedly prevented from
passing the Lleder by the fury of the flood. That a similar
disappointment might not occur to others, he erected a wooden
bridge across that river, and trusted to the generosity of travellers to
remunerate him. The success of this attempt encouraged him to
erect the bridge at Bettws y Coed, which is now called Pont y Pair,
but he died before it was completed.
Upon the right of this bridge is Carreg y Gwalch, or the Rock of the
Falcon, well clothed with trees, through which the bald cliffs peep,
like a body of sharp shooters from a brush wood anxious to escape
detection. In this rock is a recess called the Cave of Shenkin, a
celebrated outlaw, who found shelter here from the unremitting
efforts of justice during the reign of Edward IV. It is blocked up by a
piece of rock.
CHAPTER VIII.
GWYDIR CASTLE,
the property of Lord Willoughby d’Eresby, a family mansion of no
very attractive appearance. It is situated on the right of the road
which winds between it and a lofty wood-clad precipice, called
Carreg y Gwalch, or the Rock of the Falcon. It was built by John
Wynne ab Meredydd, in 1555, and has lately undergone some
alteration. The breakfast parlour contains a curious carving of the
arms of the Gwydir family, supported by Julius Cæsar and Augustus;
the former holding his commentaries in one hand, and his sword in
the other; the latter, his sword only. The dining room has some
specimens of carving, that are worthy of observation; but
throughout the mansion there is very little of what belonged to it
originally. The chairs, panelling, and even tables, being coloured for
the purpose of giving the apartments the appearance of antique
splendour, which, until lately, they wanted.
The drawing-room is spacious and lofty, and is lighted by a double
row of windows, which gives it a heavy look: this unusual
arrangement was caused by the removal of the dormitory, to give
height to this room. Over the fire-place is a finely executed carving
of Julius Cæsar in oak. At the N.W. end of the room, a piece of
tapestry represents a vintage, and at the S.E. another specimen of
needlework commemorates the landing of Charles the Fifth at
Grenada.
The coronation chair of George the Second is shewn in this
apartment, and the footstool used by Queen Caroline on her trial at
Westminster Hall. There is a centre table, very richly ornamented
with carved work; and another, which in shape exactly resembles the
slab and pedestal of a tombstone, so that the visitor naturally
enough walks up to it, expecting to see the customary “Hic jacet,”
&c.
The cradle of Sir Richard Wynne, bearing the date of 1634,
completes the list of curiosities contained in this room.
The garden, which is extensive, contains some valuable plants and
shrubs, and the terrace is a pleasant promenade, sloping from which
are beds of beautiful flowers, of various classes and descriptions.
After satisfying the housekeeper with a trifling gratuity, I proceeded
to Llanrwst, but halted upon the bridge to take a view of the Conwy,
(over which beautiful river its arches expand) and the town to which
it leads. I was here accosted by an old man, who asked me, “if I
should like to feel the bridge shake?” As I answered in the
affirmative, he desired me to place my back against the side over
the centre arch, and striking the opposite parapet rather heavily with
his own, a tremulous motion was distinctly felt; on this account it is
called the Shaking Bridge. It was built in 1636, from a plan of the
celebrated Inigo Jones, and cost £1000, which was defrayed by the
counties of Denbighshire and Carnarvonshire, which it unites.
LLANRWST
is built upon the Denbighshire side of the river. The Three Eagles is
the most commodious inn in the town; and, being rather fatigued, I
threw my limbs upon a sofa, and resigned myself to the drowsy god,
first taking especial care to order a substantial repast to be in
readiness for me on my return from the land of Nod. My last waking
recollection was the words of Mr. Lover’s favourite song,
GWYDIR CHAPEL.
This beautiful structure was erected in the year 1633, by Sir Richard
Wynne, of Gwydir, from a design of Inigo Jones, and was for many
years the burial place of the illustrious family of Gwydir. At the sides
of the chapel, fixed in panels of wood, are several engravings on
brass, illustrative of the personages who are interred below; and in
the east corner is a tablet of white marble, containing the following
remarkable pedigree, comprising a period of 500 years.
On going from the chapel to the church, you pass over a large
square flag of free stone, having on its sides a Latin inscription thus
translated:—
In the chancel, between the reading desk and the communion table,
is a flag of free stone on the remains of Margaret Vaughan, heiress
of Caergai; she was esteemed the Sappho of her age; many of her
poetical productions are still extant.
The gallery over the reading desk is said to have been removed here
from the Abbey of Aberllechog, or Maenan Abbey, upon the
dissolution of that religious house.
Under the reading desk in the Church, in a pew belonging to Kyffdy,
is a Latin epitaph to the memory of Griffith Lloyd, of Bruniog, Rector
of this parish; this is said to have been written by himself, and has
been much admired for its singularity: it runs thus:—
There is a Market Hall, Town Hall, Free Schools, and Alms Houses.
The latter were erected by Sir John Wynne, in 1610, and received
the name of Jesus Hospital. He endowed them for the reception of
twelve poor men, by ceding the rectorial tithes of Eglwys Vâch,
which are valued at £200 per annum. Within a mile of Llanrwst
there is a spring, which is much esteemed for its healthful qualities.
The water is soft, and a drop of sal-volatile mixed with a cup of it
turns it white as milk, while oil of tartar causes it to assume a pearl
colour. If during the tourist’s visit to Llanrwst there should chance to
fall much rain, I would advise him by all means to view the cataract
called
RHAIADR Y PARC MAWR,
in the valley of Nant Bwlch yr Haiarn, near Gwydir, but otherwise the
minuteness of the stream occasions no extraordinary effect from this
fall, which is about one hundred feet in height. The chief object of
interest, however, in this vicinity, is the celebrated lake, called
LLYN GEIRIONYDD,
upon the borders of which once lived the chief of the Welsh bards,
Taliesin. At the eastern side of the lake is a mound, upon the
summit of which there is a kind of hollow, and in it are the remains
of an ancient edifice, which was probably the residence of Taliesin,
in the reign of Maelgwn Gwynedd, King of Britain. Taliesin when an
infant was found by Prince Elphin by the side of a wear belonging to
his father, Gwyddno Garanhir, Lord of Cantrev Gwaelod. The Prince
fostered the infant, and had it liberally educated; and, at a proper
age, introduced him to the court of his father, Gwyddno. Upon this
occasion, Taliesin presented the king with a poem, the subject of
which was his own history, and another to the prince, which he
called Dyhuddiant Elphin, or the consolation of Elphin, a translation
of which is in Evan’s Specimens of Welsh Poetry. Taliesin had an
opportunity of being serviceable to his benefactor; for once, when
the Prince was imprisoned by his uncle, Maelgwn, in the castle of
Dyganwy, the magic of his muse effected his release. This
celebrated bard was the preceptor of Merddin ab Morvryn, and to
him the lovers of poetry are indebted for five new metres, while the
historian and antiquary are equally benefited by his accurate
description of the manners and customs of the Ancient Britons.
I quitted Llanrwst on the following morning, and took the road to
Conwy; two miles and a half brought me to the pretty village of
TREVRIW,
which presents an animated scene. It is situated upon the banks of
the beautiful river Conwy, which is navigable up to this point for
vessels of fifty tons burthen, that supply the town and
neighbourhood with coals, lime, groceries, &c., &c., and return laden
with slate, supplied from the adjacent mines and quarries. A
number of small boats, called coracles, used by the fishermen, are
seen studding the delightful stream, while the larger vessels, towed
against the wind or sailing before it, present a pleasing picture.
From this place to Conwy there is nothing particularly to attract
attention, until you arrive within a mile of that celebrated town,
when, from the brow of a hill, is obtained a view of the venerable
fortress erected by the first Edward, and the strongly fortified walls,
completely encompassing the town, and strengthened by massive
towers. They are coeval with the castle, and are built in the form of
a Welsh harp, like those of Carnarvon; but here there are no
environs, and the town presents the same appearance as when the
chivalric monarch first fortified it.
CONWY.
The town derives its name from Cyn (chief) and Wy river.
The principal inn is the Castle, which affords every accommodation
the traveller can desire. The Wynnes are celebrated here, as in all
parts of North Wales. In the interior of the town stands Plâs Mawr,
which was erected in 1585, and is still a remarkable structure; its
founder was Robert Wynne, of Gwydir, the uncle of Sir John Wynne,
the historian. Over the grand entrance is inscribed, in Greek
characters “bear and forbear,” over which in Roman characters, “J.
H. S. X. P. S.” (Jesus Hominum Salvator et Populi Salus.) The Old
College is in Castle Street, and the Church is built from the remains
of the ancient Cistercian Abbey, which was founded here by Llewelyn
ab Iorwerth, 1185. It contains a rich baptismal font of gothic
structure, with a tablet to the memory of Nicholas Hookes, of the
town of Conwy, who was the forty-first child of William and Alice
Hookes, and who was himself the father of twenty-seven children.
During my short stay in Conwy, I endeavoured to discover the best
view of the town, which, I think, is from the eastern side of the river,
about midway between the chain bridge and the mansion of
Dyganwy. Nothing can be more interesting. The variety of small
craft, sailing and anchored, before its warlike screen; the castle, with
its towers and turrets, rising in hostile grandeur upon its rocky base;
the bridges, and lovely scenery beyond of purple hills and thriving
villages; and the bright waters sporting with the luxuriant foliage of
its woody margin, create a sensation of delight in the pursuer of
picturesque scenery which he has probably seldom before
experienced.
Another delightful view may be obtained by ascending the rock
which overhangs the lodge of the suspension bridge upon its eastern
side. This very beautiful specimen of art has however lost a great
portion of its attraction since the completion of the more wonderful
structure of the Tubular Bridge, which, like a mighty conqueror, looks
proudly conscious of its own importance, and compels the former to
take a secondary position in the estimation of the visitor. It consists
of only one span of 400 feet, and two abutments of masonry, which
are in perfect harmony with the venerable appearance of the Castle.
But the chief object of interest is the Castle, which surpasses in
picturesque grandeur any building of the kind I ever beheld. I
thought Carnarvon Castle the most beautiful of ruins, but it is not, in
my opinion, to be compared with Conwy. The solidity of its
structure, and its expansive site, resembling the fortresses of Syria
and the Holy Land, give to its exterior all that the most romantic
imagination could desire. Its foundation is a rock of slate, and its
works are impregnable. Nothing but famine could, at the time it was
erected, have had power to subdue it. Its walls are from ten to
twelve feet in thickness, and it had formerly a deep and broad moat,
on the west and north-west sides; which, with the sea washing its
base on the east and south, formed insurmountable barriers to the
assailants.
It was evening when I first entered this noble ruin. The porteress
very ungraciously left me to my meditations after admitting me,
locking the gate after her, and leaving me like a state prisoner in the
royal fortress. I confess I was little pleased with the manners of my
conductress, and the solitary situation in which I was placed, and
sensations arose within me like those which a school boy feels when
passing a churchyard at midnight. The sun had set, and the deep
shadows of eve were darkening into night, as I stood alone in the
court yard, and flitting visions arose before me of those who had
crossed its space in distant by-gone ages—“the plumed troops,” and
courtly dames, and all the glitter of the olden times. As I thus stood
amongst the ruins, a deep drawn sigh, close by my ear, made my
heart leap into my throat, as I turned to discover from whence it
proceeded. But all was solitude around. The huge festoons of ivy,
unruffled by a breath of air hung in funereal grandeur on the walls.
As I passed into what had been the banqueting hall, the darkness
increased. It was a noble apartment, and measured 130 feet in
length, and thirty in breadth, in height twenty. Nine windows looked
southward, up the river, and two into the courtyard. In the recesses
were stone seats, capable of accommodating twelve persons; and,
as I seated myself in one of these, my delusion of other days came
over me. Here sat the first Edward, the hero of Palestine; here was
the monarch besieged, and almost reduced by famine; here Hotspur
and King Richard held a conference; and the latter, putting himself
into the power of Northumberland, was betrayed by him, and sent a
prisoner to the usurper, Bolingbroke.
As I made this apt quotation, another deep and heavy sigh, and a
rustling in the ivy, startled me, and the bird of solitude, the lonely
owl, flapped his heavy wings, and flew past me to a remoter corner
of the ruined hall. I arose, and walked to a small chamber, where
there was an open ornamented casement, and which, as I was
afterwards informed, bears the name of the Queen’s Oriel; from
which there is a pleasant prospect of part of the ruin and scenery
beyond.
I then proceeded to the terrace, at the south-western extremity,
which is on the surface of the rock, and the prospect from this spot,
interesting at all times, is doubly so by moonlight. The suspension
and tubular bridges beneath, the ocean on the left, and this fertile
valley on the right, with the sparkling Conwy meandering through it,
compose a scene of unexampled beauty.
In the year 1290, when Edward was engaged in a dispute with the
King of France, and was determined to revenge himself upon that
potentate, in order to obtain supplies, he made the experiment of
Welcome to Our Bookstore - The Ultimate Destination for Book Lovers
Are you passionate about books and eager to explore new worlds of
knowledge? At our website, we offer a vast collection of books that
cater to every interest and age group. From classic literature to
specialized publications, self-help books, and children’s stories, we
have it all! Each book is a gateway to new adventures, helping you
expand your knowledge and nourish your soul
Experience Convenient and Enjoyable Book Shopping Our website is more
than just an online bookstore—it’s a bridge connecting readers to the
timeless values of culture and wisdom. With a sleek and user-friendly
interface and a smart search system, you can find your favorite books
quickly and easily. Enjoy special promotions, fast home delivery, and
a seamless shopping experience that saves you time and enhances your
love for reading.
Let us accompany you on the journey of exploring knowledge and
personal growth!
ebookgate.com