Complete Download Python Programming: 3 Books in 1: Ultimate Beginneru2019s, Intermediate & Advanced Guide to Learn Python Step-by-Step PDF All Chapters
Complete Download Python Programming: 3 Books in 1: Ultimate Beginneru2019s, Intermediate & Advanced Guide to Learn Python Step-by-Step PDF All Chapters
https://ebookmass.com
https://ebookmass.com/product/python-
programming-3-books-in-1-ultimate-beginners-
intermediate-advanced-guide-to-learn-python-step-
by-step/
https://ebookmass.com/product/advanced-guide-to-
python-3-programming-2nd-2nd-edition-john-hunt/
testbankdeal.com
https://ebookmass.com/product/a-beginners-guide-to-
python-3-programming-2nd-edition-john-hunt/
testbankdeal.com
https://ebookmass.com/product/python-javascript-mastery-2-books-
in-1-learn-and-master-two-powerful-programming-languages-alex-
iversion/
testbankdeal.com
https://ebookmass.com/product/python-programming-and-sql-10-books-
in-1-supercharge-your-career-with-python-programming-and-sql-andrew-
reed/
testbankdeal.com
https://ebookmass.com/product/python-for-beginners-master-python-
programming-from-basics-to-advanced-level-tim-simon/
testbankdeal.com
https://ebookmass.com/product/learn-programming-with-c-an-easy-step-
by-step-self-practice-book-for-learning-c-1st-edition-imran/
testbankdeal.com
PYTHON PROGRAMMING
Python Programming: The Ultimate Beginner’s Guide to Learn Python Step by Step
Introduction
1. What is Python Machine Learning?
2. How to Start Learning Python
3. Review of Data Samples and Visualization of Data
4. How to Create a Dataset with Visualization
5. Making Predictions with Algorithms
6. Examples of Coding
7. Decision Tree
8. Neural Networks
9. Bringing it All Together
Conclusion
Python Programming: The Ultimate Intermediate Guide to Learn Python Step by Step
Introduction
1. What Is Machine Learning
2. Supervised Machine Learning
3. Unsupervised Machine Learning
4. The Basics of Working with Python
5. Setting up Your Python Environment
6. Data Preprocessing with Machine Learning
7. Working with Linear Regression in Machine Learning
8. Using a Decision Tree for Regression
9. Random Forest for Regression
10. Working with a Support Vector Regression
11. What is Naive Bayes and How Does It Work with Machine Learning
12. K-Nearest Neighbors Algorithm for Classification
Conclusion
Python Programming: The Ultimate Expert Guide to Learn Python Step-by-Step
Introduction
1. Working with Inheritances in Python
2. Arguments in Python
3. Namespace and Python
4. Working with Iterators in Python and What These Mean
5. Exception Handling and How to Create a Unique Code with Them
6. The Python Generators
7. What are Itertools in the Python Language
8. What are Closures in Python and Why are they so Important
9. Working with Regular Expressions
10. What are the Conditional Statements and When Will I Need to Use Them?
11. Do I Need to Learn Assert Handling in This Language
12. How to Work with Loops in Your Python Code
13. When to Use User-Defined Functions in Your Code
14. Working with Memoization in Python
Conclusion
Copyright 2018 by James C. Anderson - All rights reserved.
The following eBook is reproduced below with the goal of providing information that is as
accurate and reliable as possible. Regardless, purchasing this eBook can be seen as consent to the
fact that both the publisher and the author of this book are in no way experts on the topics
discussed within and that any recommendations or suggestions that are made herein are for
entertainment purposes only. Professionals should be consulted as needed prior to undertaking
any of the action endorsed herein.
This declaration is deemed fair and valid by both the American Bar Association and the
Committee of Publishers Association and is legally binding throughout the United States.
Furthermore, the transmission, duplication or reproduction of any of the following work
including specific information will be considered an illegal act irrespective of if it is done
electronically or in print. This extends to creating a secondary or tertiary copy of the work or a
recorded copy and is only allowed with an expressed written consent from the Publisher. All
additional rights reserved.
The information in the following pages is broadly considered to be a truthful and accurate
account of facts, and as such any inattention, use or misuse of the information in question by the
reader will render any resulting actions solely under their purview. There are no scenarios in
which the publisher or the original author of this work can be in any fashion deemed liable for
any hardship or damages that may befall them after undertaking information described herein.
Additionally, the information in the following pages is intended only for informational purposes
and should thus be thought of as universal. As befitting its nature, it is presented without
assurance regarding its prolonged validity or interim quality. Trademarks that are mentioned are
done without written consent and can in no way be considered an endorsement from the
trademark holder.
PYTHON PROGRAMMING: THE
ULTIMATE BEGINNER’S GUIDE TO
LEARN PYTHON STEP BY STEP
Visit https://ebookmass.com
now to explore a rich
collection of eBooks and enjoy
exciting offers!
I NT R OD UC T I ON
This guide has been composed specifically for Newbies and Beginners.
You will be taken through each step of your very first program, and we
will explain each portion of the script as you test and analyze the data.
Machine learning is defined as a subset of something called artificial
intelligence (AI). The ultimate goal of machine learning is to first
comprehend the structure of the presented data and align that data into
certain models that can then be understood and used by anyone.
Despite the fact that machine learning is a department in the computer
science field, it truly is different from normal data processing methods.
In common computing programs, formulas are groups of individually
programmed orders that are used by computers to determine outcomes and
solve problems. Instead, machine learning formulas allow computers to
focus only on data that is inputted and use proven stat analysis in order to
deliver correct values that fall within a certain probability. What this
means is that computers have the ability to break down simple data
models which enables it to automate routine decision-making steps based
on the specific data that was inputted.
Any innovation client today has profited from machine learning. Facial
acknowledgment innovation enables internet based life stages to enable
clients to tag and offer photographs of companions. Optical character
acknowledgment (OCR) innovation changes over pictures of content into
portable kind. Proposal motors, controlled by machine learning,
recommend what motion pictures or TV programs to watch next in view of
client inclinations. Self-driving autos that depend on machine learning on
how to explore may soon be accessible to shoppers.
Machine learning is a ceaselessly growing field. Along these lines, there
are a few things to remember as you work with machine learning
philosophies, or break down the effect of machine learning forms.
In this book, we'll look at the normal machine learning strategies for
managed and unsupervised learning, the basic algorithmic methodologies
including the k-closest neighbor calculation, specific decision tree
learning, and deeply impactful techniques. We will also investigate which
programming is most used in machine learning, giving you a portion of
the positive and negative qualities. Moreover, we'll talk about some
important biases that are propagated by machine learning calculations, and
consider what can be done to avoid biases affecting your algorithm
building.
There are plenty of books on this subject on the market. Thanks for
choosing this one! Every effort was made to ensure it’s full of useful
information as possible, please enjoy!
1
WH AT I S PY T H O N MAC H I NE LE AR NI NG ?
WH AT I S PY T H O N?
H I ST O R Y O F PY T H O N
Python was invented in the later years of the 1980s. Guido van Rossum,
the founder, started using the language in December 1989. He is Python's
only known creator and his integral role in the growth and development of
the language has earned him the nickname "Benevolent Dictator for Life".
It was created to be the successor to the language known as ABC.
Van Rossum said one the reasons he created Python back in 1996:
““...In December 1989, I was looking for a "hobby" programming project
that would keep me occupied during the week around Christmas. My office
... would be closed, but I had a home computer and not much else on my
hands. I decided to write an interpreter for the new scripting language I
had been thinking about lately: a descendant of ABC that would appeal to
Unix/C hackers. I chose Python as a working title for the project, being in
a slightly irreverent mood (and a big fan of Monty Python's Flying
Circus).”
The next version that was released was Python 2.0, in October of the year
2000 and had significant upgrades and new highlights, including a cycle-
distinguishing junk jockey and back up support for Unicode. It was most
fortunate, that this particular version, made vast improvement procedures
to the language turned out to be more straightforward and network
sponsored.
Python 3.0, which initially started its existence as Py3K. Funny right? This
version was rolled out in December of 2008 after a rigorous testing period.
This particular version of Python was hard to roll back to previous
compatible versions which are the most unfortunate. Yet, a significant
number of its real highlights have been rolled back to versions 2.6 or 2.7
(Python), and rollouts of Python 3 which utilizes the two to three utilities,
that helps to automate the interpretation of the Python script.
Python 2.7's expiry date was originally supposed to be back in 2015, but
for unidentifiable reasons, it was put off until the year 2020. It was known
that there was a major concern about data being unable to roll back but roll
FORWARD into the new version, Python 3. In 2017, Google declared that
there would be work done on Python 2.7 to enhance execution under
simultaneously running tasks.
B ASI C F E AT U R E S O F PY T H O N
Python is an unmistakable and extremely robust programming language
that is object-oriented based almost identical to Ruby, Perl, and Java,
A portion of Python's remarkable highlights:
Python uses a rich structure, influencing, and composing projects that can
be analyzed simpler.
It is a simple to utilize dialect that makes it easy to get your program
working. This makes Python perfect for model improvement and other
specially appointed programming assignments, without trading off
viability.
It accompanies a huge standard library that backs tons of simple
programming commands, for example, extremely seamless web server
connections, processing and handling files, and the ability to search
through text with commonly used expressions and commands.
Visit https://ebookmass.com
now to explore a rich
collection of eBooks and enjoy
exciting offers!
Python's easy to use interactive interface makes it simple to test shorter
pieces of coding. It also comes with IDLE which is a "development
environment".
Python effortlessly extended out by including new modules executed in a
source code like C or C++.
Python can also be inserted into another application to give an easily
programmed interface.
Python will run anyplace, including OS X, Windows Environment, Linux,
and even Unix, with informal models for the Android and iOS
environments.
Python can easily be recorded, modified and re-downloaded and
distributed, be unreservedly adjusted and re-disseminated. While it is
copyrighted, it's accessible under open source.
Ultimately, Python is a free software.
Common Programming Language Features of Python
A huge array of common data types: floating point numbers, complex
numbers, infinite length integers, ASCII strings, and Unicode, as well as a
large variety of dictionaries and lists.
Python is guided in an object-oriented framework, with multiple classes
and inheritance.
Python code can be bundled together into different modules and packages.
Python is notorious for being a much cleaner language for error handling
due to the catching and raising of exceptions allowed.
Information is firmly and progressively composed. Blending incongruent
data types, for example, adding a string and a number together, raises an
exception right away where errors are caught significantly sooner than
later.
Python has advanced coding highlights such as comprehending lists and
iterators.
Python's programmed memory administration liberates you from having
to physically remove unused or unwanted code.
Random documents with unrelated
content Scribd suggests to you:
accompanied Mr. Cavendish on his late expedition through
Somaliland to Lake Rudolph. He was a tall, sinewy, well-set-up man
with clean-cut, regular features, extremely intelligent, thoroughly
trustworthy, honourable, polite, and hospitable—a man whom it was
really a pleasure to meet. He was about thirty years of age.
Ismail Robli was a short stout man with a shifty eye, and decidedly
prognathous jaws, very plausible, and, when he had an object in
view, very hospitable; but he hid a craven spirit under a show of
bluster and bullying. Noor Adam was a little slim man, with narrow
eyes and ferret-like features. He was reported to have shot some of
his porters on his journey across West Kenia, for attempted
desertion. He somehow provoked an instinctive feeling of dislike,
and we never got on with him. His two partners, Bhotan and
Abdallah Arahalli, were much of the same kidney. All three were
Ogaden Somalis, a tribe who have not the best of reputations. There
were sundry other lesser lights who are not of sufficient importance
to deserve notice.
When they came into camp we received them with due ceremony,
and asking them to be seated, interchanged greetings in the
Mohammedan manner. For a moment the air resounded with such
remarks as “Sabal Kheir” (God bless you), “Salaam Aliekoum”
(Peace be on you), and “Aliekoum Salaam” (And on you peace),
mingled with the Swahili “Uhali ghani? Habari ghani?” (How are you?
What news?), till etiquette was satisfied. We then got to business,
and discussed the Embe affair in all its bearings. El Hakim cross-
questioned Noor Adam and some of his men very severely, but could
find no discrepancy in their various accounts. We discussed the
matter very fully, and finally, for the good and sufficient reasons I
have already enumerated, we determined to punish the Wa’Embe in
co-operation with the Somalis. We instructed them to provide thirty-
five men carrying Snider rifles, while we undertook to supply twenty-
five men similarly armed, which, with ourselves, made up a strong
force of sixty-three men, a number we considered amply sufficient
for the purpose in hand. We despatched a nephew of N’Dominuki’s
to Embe as a spy, to find out a good road and the position of the
villages, etc., and he started the same evening.
On the following day we held another “shaurie” with the Somalis to
discuss the modus operandi of our projected expedition.
N’Dominuki’s nephew had been instructed to return from Embe
within two days, and we decided to start on the afternoon of the next
day—by which time, bar accidents, he would have returned—and
march immediately on receiving his report. We intended to start just
before dusk, pass through M’thara in the darkness, and be over the
Embe border unperceived at midnight. A short rest and a dash on
the Wa’Embe at dawn would complete the operation. It was a good
plan, and would have answered admirably but for one of those little
accidents that make “the best-laid schemes o’ mice and men gang
aft agley.” As will be seen, it suited the enemy admirably.
Embe on this side (the west) consists of a range of steep
mountains, where it rains nearly all the year round. It has, therefore,
a very moist climate and fertile soil, and its steep slopes and deep
valleys are covered with dense jungle interspersed with banana
plantations, making it a very nasty country to fight in, especially
against natives who know every inch of the ground and every turn of
the paths. We did not tell N’Dominuki of our plans—a very grave
oversight that nearly cost us our lives and those of the whole
expedition.
On the following morning, as we really could not stand the wind
any longer, we shifted our camp to the inside of the forest, and while
we were about it we fortified it as well as we were able by felling
thorn trees, etc. We were much more sheltered in this new position,
though, to be sure, it was rather damp. This wind had a nasty cold
nip with it night and morning, which was the reverse of agreeable.
When we had our camp satisfactorily settled, we made our simple
preparations for the expedition to Embe. We took one tent with us in
case we were away more than a day or two. A loaf of bread and a
hind quarter of boiled mutton were also included; and, of course, a
plentiful supply of ammunition. The men had thirty rounds of Snider
cartridges each, which was all we could spare. The Somalis’ men
had fifty rounds each, and they, in addition, had a reserve chest of
six hundred rounds for emergencies.
At 5 p.m. we started. The natives in our immediate vicinity had,
with their usual unerring instinct in such matters, smelt a row, and
about fifty of them turned up armed with spears and shields. We did
not want them, but could not very well turn them away, and at the
last moment it occurred to us that they might prove useful as scouts,
and we therefore allowed them to remain. When our force had
assembled, it made quite an imposing array with the sixty men with
rifles and the fifty others with spears. Altogether, we commanded
upwards of a hundred men, and had no doubt but that we should
teach the Wa’Embe a severe lesson.
N’Dominuki’s nephew had not returned, and we concluded that he
had been discovered and killed, and were consequently rather
nonplussed for the lack of a guide. At the last moment a Masai
warrior came forward and volunteered to guide us. On the Somalis
saying that he was known to them, we accepted his services. Soon
after we started, N’Dominuki’s nephew unexpectedly returned and
joined us, and he and the Masai took the head of the column.
Darkness had fallen as we marched through M’thara, the road
continually ascending. The path at last grew extremely difficult, and
on several occasions El Hakim expressed doubt as to whether we
were going right. However, we were now committed to whatever the
Fates had in store for us; it was impossible to withdraw.
Onward we stumbled in the darkness, now up steep hillsides, and
anon down deep and gloomy valleys clothed in thick jungle where
the deep booming note of a mountain torrent growled hoarsely from
somewhere out of the pitchy blackness below. Soon the path
became so narrow that we could advance only in Indian file, which
weakened us considerably, as our fighting line was thereby stretched
out for some two hundred yards, being consequently out of our
immediate control, while the jungle, meeting overhead, blotted out
what little light the stars provided. It was impossible, on account of
the denseness of the vegetation, to place men out on our flanks, and
in addition we were counting on taking the Wa’Embe by surprise,
and so did not wish to make too much noise. At 10 p.m. we were
well within the Embe border, and we then looked for a place to rest
awhile and prepare for our rush at dawn. We could not find a suitable
spot, however, and eventually decided to halt on the path. A drizzling
rain came on, which did not improve matters. One of our men found
a place a little distance from and below the path, that did not slope at
such an acute angle as the rest of the landscape, and we as
noiselessly as possible pitched the tent. El Hakim, George, and I
partook of a frugal meal, but we were without water, and naturally we
felt ever so much thirstier than we would otherwise have done. We
placed sentries, Jamah Mahomet doing the same where he had
halted on the path. We three Wasungu then dropped off to sleep.
Somewhere about midnight we awoke with a start, reaching for
our rifles as the sound of a shot floated down to us from where
Jamah Mahomet’s sentries were posted. It was followed by a
second, and then a third. Then all was silent again, except for the
subdued hum of suddenly wakened men. On sending for
explanations, we found that some Wa’Embe, coming down the path,
had stumbled right on to the sentries, and were instantly fired upon.
All hope of a surprise was thus abolished, but on consultation we
decided that if we started an hour or so earlier, possibly 3 a.m., we
might take the enemy at a disadvantage. Accordingly, at that time we
once more set out.
It was dark as Erebus. As we noiselessly formed up on the path, a
sort of half sense of impending disaster seemed to have fallen on the
men. We did our best to dissipate it, and apparently succeeded. The
Masai guide and N’Dominuki’s nephew led the way; next came four
of the Somalis as advance-guard; then Jamah Mahomet, who was
wearing a waterproof coat over his khaki costume; finally George, El
Hakim, and myself. A few yards farther on we found a spear in the
path, probably dropped by one of the Wa’Embe in their flight, when
fired at by the sentries. If possible, the path grew worse as we
advanced, and presently we reached a deep ravine with a swift
torrent roaring and tumbling at the bottom. It was spanned by a
single tree-trunk, which served as a bridge. Beyond the ravine the
path sloped upwards with many twists and turns. On each side the
jungle prevented anything being seen more than a yard or two away.
We advanced slowly and cautiously in the order described, when a
shot rang out almost under our feet; another followed; and then a
volley from the advance-guard showed that something serious was
toward. A terrific howl and the long repeated U-u-u-i (the A’kikuyu
war-cry) showed us that we were very skilfully ambushed, and the
realization was not pleasant. The firing at once became general all
along the line. It was a very fierce fusillade while it lasted; the reports
of the rifles and the cheers of our men, mingled with the war-cries of
the enemy, sounding weird and ghastly in the dense blackness of the
early morning (it was then 4 a.m.).
For a few moments pandemonium reigned supreme. Neither El
Hakim nor I could see a single native. George, though only a yard or
so away, was hidden from us, both by the darkness and by a turn in
the path. El Hakim clutched my arm and dragged me into a sitting
position on the ground as the whirring, hissing rush and plaintive
whine of bullets in unpleasant proximity to our ears warned us that
we were in considerable danger of being shot by our own men.
Owing to the serpentine winding of the path, they were firing towards
every point of the compass, and we were therefore much safer on
the ground. In a few moments the war-cries of the enemy died away
as suddenly as they came, and the spiteful crackle of the rifles
lessened a little. As soon as we were able to make ourselves heard,
we gave the order “Cease fire,” and endeavoured to find out what
damage had been done. I called to George, and, to my great relief,
he answered me.
El Hakim and I then advanced, and turned the corner. We could
then dimly discern George amid the gloom. He came towards us
saying that Jamah Mahomet was wounded, and was lying on the
path a yard or so away. Hastening to the spot, we saw Jamah
stretched upon the ground, moaning pitifully. He had a great spear
driven right through him. A native had concealed himself in a pit dug
on the side of the path and lain in wait, letting both the guides and
the advance-guard go past him in the hope of bagging one of the
Wasungu. In the darkness he mistook Jamah Mahomet’s tall form,
clad in European clothes, for George, and as Jamah passed he
thrust upwards with all his strength. Jamah instantly fell. George,
who was only a yard behind, saw the thrust, and, raising his rifle, he
shot the native through the stomach, but did not drop him. This was
the shot which gave us the first alarm.
El Hakim made a hasty examination of the stricken man, and
pronounced the wound fatal. The broad spear-blade, over two feet in
length, had entered the right side just below the ribs, and, passing
through the body, emerged just under the left arm, protruding several
inches. Jamah was semi-conscious, and apparently in great pain.
Grouped round him, on the alert, were the four Somalis who formed
the advance-guard. As El Hakim concluded his examination, Ismail
Robli, Noor Adam, and others of the Somalis, came up. When they
learnt what had happened to Jamah, such a wail of grief and dismay
went up as I hope never to hear again. Ismail behaved like one
demented. He wept and cried upon “Allah” in the most frenzied
accents.
As we were crowded together in the path over the dying Jamah,
N’Dominuki’s nephew crept out of the bush, and, with shaking limbs
and horror-stricken countenance, approached El Hakim, attempting
to say something which his trembling lips refused to utter. The other
guide had disappeared. El Hakim seized him, and was trying to
understand what he was saying, when Ismail Robli caught sight of
the palsied wretch. His face changed instantly from an appearance
of pious supplication to one of demoniacal fury, and, crying “This
man is a false guide; he has caused Jamah’s death,” placed his rifle,
a ·577 express, against the other’s side, and, before I could raise a
hand to interfere, pulled both triggers, literally blowing the poor
wretch to pieces.
It was a hideous and revolting exhibition of savage ferocity. Ismail
did not even put the rifle to his shoulder—we were too crowded for
that—he simply pushed the barrels past me and fired from his hip.
The murdered man collapsed in a writhing, moaning heap on the
ground. Ismail turned away and reloaded his rifle.
It was no time for recrimination, as at the report of Ismail’s rifle, a
fresh burst of firing broke from our men in the rear, which we
instantly quelled. It was a dastardly act on Ismail’s part, even though
at the time he was almost frenzied with grief at Jamah’s injury, as we
had no reason to believe that the unfortunate guide had played us
false. As we found out afterwards, the real culprit was the Masai
volunteer, who, it appeared, was a native of Embe, who had been
sent for the purpose of betraying us. At the same time, N’Dominuki’s
nephew had neglected to warn us, or point out that we were going by
a bad road. A great deal remained to be explained, but his untimely
end put further explanation out of his power for ever.
However, there we were in the dark, stuck on a path eighteen
inches wide, with a wounded man and no guides. The question now
was how to get out without further loss. We called a council of war,
first posting the Somali advance-guide a few yards up the path. We
decided to wait till daylight, as we could not move while Jamah was
living, and he was too far gone to be carried. It was a ghastly wait.
After the firing and shouting, the silence could almost be felt; it
seemed absolutely deathlike. We strained our ears to the utmost at
the slightest rustle of a leaf, as, for all we knew, the bush might be
swarming with natives waiting their opportunity for a rush.
A curious sight we should have presented to a spectator. The
Somalis, led by Ismail, were grouped, praying, round the dying
Jamah, who was sinking fast and moaning softly at intervals. El
Hakim, revolver in hand, stood bolt upright, and intensely on the
alert, his face showing faintly white through the gloom. Beside him
stood George, drumming with his fingers on his rifle—a habit of his—
softly humming an air from “Cavalleria Rusticana.” Crouched down
on the path were the men, motionless as bronze statues, conversing
in low whispers now and then, while they strained their eyes in the
endeavour to pierce the surrounding bush. A yard or so away lay the
dead body of N’Dominuki’s nephew; his dirty cotton waist-cloth
smouldering where it had caught fire from the explosion of Ismail’s
rifle, nearly choking us with the smell of singed flesh and the pungent
odour of burning cloth. We tried several times to put out the cloth,
but we had no water, and it was in vain we attempted to smother it;
so it smouldered all night, and uncommonly unpleasant we found it.
We were parched with thirst, having had no water since the
previous afternoon. Once in a while the flash of a sentry’s rifle would
momentarily light up the surrounding jungle, and the sharp report
stabbed the silence. I laid down on the path and slept—fighting
sometimes affects me that way—and woke up at dawn, just as
Jamah died. We were exceedingly sorry, as he was one of the best
of his race we ever had to do with. At the first glimmer of daylight we
dug a grave on the side of the path, and he was buried with all the
ordinances proclaimed by Mohammedan law that were possible
under the circumstances. Prayers and lamentations in Arabic
resounded on all sides from the deceased’s assembled compatriots.
There being now no signs of the enemy, El Hakim, George, and I
were for continuing the advance and pulling the fat out of the fire
somehow, but Ismail and the other Somalis would not hear of it.
They said that the enemy were now fully prepared for us, and
instanced the numerous freshly dug pits that had been found on
each side of the path when digging Jamah’s grave. Another
argument they employed was that our respective camps were almost
entirely unprotected, and it was more than likely that the Wa’M’thara
or the Wa’Chanjai would attack and loot them in our absence, more
especially as they (the Somalis) had a large number of cattle, which
are particularly tempting to a native. In addition, we were now
entirely without guides, while the path ahead seemed worse than
ever.
We saw the force of this reasoning, and common prudence
directed that, for the present at any rate, we must abandon the
attack; which decision, though gall and wormwood to we
Englishmen, we were reluctantly compelled to admit was the wisest
possible under the circumstances. We made up our minds, however,
that we would return under more favourable auspices, and wipe out
the disgrace of our defeat, for defeat it was, and so with that
understanding we acquiesced in the retreat, and gave the necessary
orders to retire.
It was with very mixed feelings that we travelled back over the
difficult path we had trodden a few hours before with such
confidence. We found out afterwards that our sudden retreat
disconcerted the Wa’Embe, who were massed in force further along
the path at a place where they had dug a large number of pits, in
which they had kindly placed sharpened spikes for our reception.
At eight o’clock we were met on the road by an M’thara man
named Koromo, who handed us a jar of honey as a present. When
we got within a mile or two of our camp large numbers of fully armed
natives slunk past us, going towards Chanjai. They were coming
from the direction of our camp. Hurrying on with sinking hearts, we
soon arrived at the camp, and to our great relief found all safe,
though Jumbi was full of some report or other about armed natives
who had been round the camp during the night. We said he could tell
us about it afterwards, as at present we wished to eat. It was then
one o’clock in the afternoon, so we set to and made a hearty meal,
and afterwards retired to our blankets and slept the sleep of the just
until dinner-time.
FOOTNOTES:
[3] “Through Jungle and Desert,” by William Astor Chanler,
A.M. (Harv.), F.R.G.S., pp. 168-177.
[4] “Elephant Hunting in East Equatorial Africa,” by Arthur H.
Neumann, pp. 42, 43.
CHAPTER VI.
OUR MOVEMENTS IN M’THARA AND MUNITHU.
The same day the Somalis left M’thara for Chanjai, where they
desired to purchase food. They promised that on their return in four
days’ time they would accompany us on another expedition into
Embe—a result I should have attributed to my eloquence of the night
before had we not been perfectly aware of the unreliability of their
promises. El Hakim, however, decided to wait on the off-chance of
their returning, and resolved to fill in a day or two by a journey back
to Munithu to collect food, and also to try to get news as to how far
our Embe reverse had affected native feeling towards us in those
districts. He took eight men with rifles with him. I amused myself all
the morning trying to make toffee from native honey and butter. The
resulting compound, though palatable enough, could not be induced
to harden, so we were compelled to devour it with a spoon. George
gave in at midday to a nasty touch of fever. I administered a couple
of phenacetin tabloids, and sweated him well, which towards evening
reduced his temperature. Next morning he was decidedly better, and
together we made a tour of inspection round the camp. We saw a
peculiar striped rat in the boma, which we nicknamed the zebra rat. It
was mouse-coloured with black stripes, but as we had not a trap we
could not secure a specimen. At midday George was down again
with the fever, and I dosed him once more. At 12.30 two men came
back from El Hakim with a note for me. He asked for some fresh
bread and a bottle of milk, also for six more men with rifles. It
seemed that the Wa’G’nainu, the people of a district west of Munithu,
on hearing of our Embe reverse, had come down and looted some of
the trade goods which El Hakim had left in Bei-Munithu’s charge,
and that he intended to try to recover them. He also asked for my
company if I could leave camp. As George was so queer I did not
feel justified in leaving him, but on his assurance that he was quite
able to look after himself while I was away, I decided to go.
I took no baggage or blankets, and with six men and four donkeys,
which were required to bring back the balance of El Hakim’s goods
still remaining with Bei-Munithu, started at one o’clock, intending to
try to reach Munithu the same evening, though it had taken the safari
two days to reach M’thara from Munithu on the outward journey. At
sundown, after a toilsome and seemingly interminable march, my
party and I arrived at El Hakim’s camp outside Bei-Munithu’s village,
where El Hakim, pleased at our rapid journey, forthwith ministered to
my material wants in the way of towels, soap, and supper. After our
meal he summoned Bei-Munithu, and bade him recapitulate for my
benefit the story of the pillaged goods. Briefly it amounted to this: A
large party of the Wa’G’nainu had come on a friendly visit to Bei-
Munithu. During their sojourn with him a report came to hand that the
Wasungu had been driven out of Embe with great loss, and one of
them had been killed. The news caused some excitement, and, as
was only natural, the assembled natives discussed in what way the
Wasungu’s supposed misfortunes could be turned to profitable
account. It was already well known that Bei-Munithu had one of his
huts filled from floor to roof with the trade goods and equipment of
the chief Wasungu, and it did not require much persuasion to induce