0% found this document useful (0 votes)
4 views60 pages

Python: 3 books in 1: Beginner’s guide, Data science and Machine learning. The easiest guide to start Python programming. Unlock your programmer potential and develop your project in just 30 days First Edition William Dimick download

The document is a comprehensive guide to learning Python, covering topics from beginner programming to advanced data science and machine learning. It includes various resources and books aimed at helping readers unlock their programming potential and develop projects within 30 days. Additionally, it emphasizes the accessibility of Python for learners of all ages and backgrounds, encouraging practice and creativity in coding.

Uploaded by

abijjgmp0716
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views60 pages

Python: 3 books in 1: Beginner’s guide, Data science and Machine learning. The easiest guide to start Python programming. Unlock your programmer potential and develop your project in just 30 days First Edition William Dimick download

The document is a comprehensive guide to learning Python, covering topics from beginner programming to advanced data science and machine learning. It includes various resources and books aimed at helping readers unlock their programming potential and develop projects within 30 days. Additionally, it emphasizes the accessibility of Python for learners of all ages and backgrounds, encouraging practice and creativity in coding.

Uploaded by

abijjgmp0716
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 60

Python: 3 books in 1: Beginner’s guide, Data

science and Machine learning. The easiest guide


to start Python programming. Unlock your
programmer potential and develop your project in
just 30 days First Edition William Dimick
https://textbookfull.com/product/python-3-books-in-1-beginners-
download
guide-data-science-and-machine-learning-the-easiest-guide-to-
start-python-programming-unlock-your-programmer-potential-and-
develop-your-project-in-just-30-d/

Download full version ebook from https://textbookfull.com


We believe these products will be a great fit for you. Click
the link to download now, or visit textbookfull.com
to discover even more!

Advanced Guide to Python 3 Programming Hunt

https://textbookfull.com/product/advanced-guide-to-
python-3-programming-hunt/

Python Real World Machine Learning: Real World Machine


Learning: Take your Python Machine learning skills to
the next level 1st Edition Joshi

https://textbookfull.com/product/python-real-world-machine-
learning-real-world-machine-learning-take-your-python-machine-
learning-skills-to-the-next-level-1st-edition-joshi/

Make Your Own Python Text Adventure: A Guide to


Learning Programming 1st Edition Phillip Johnson

https://textbookfull.com/product/make-your-own-python-text-
adventure-a-guide-to-learning-programming-1st-edition-phillip-
johnson/

Competitive Programming in Python: 128 Algorithms to


Develop your Coding Skills 1st Edition Christoph Dürr

https://textbookfull.com/product/competitive-programming-in-
python-128-algorithms-to-develop-your-coding-skills-1st-edition-
christoph-durr/
Learn Python Programming A beginner s guide to learning
the fundamentals of Python language to write efficient
high quality code Romano

https://textbookfull.com/product/learn-python-programming-a-
beginner-s-guide-to-learning-the-fundamentals-of-python-language-
to-write-efficient-high-quality-code-romano/

CPython Internals Your Guide to the Python 3


Interpreter 1st Edition Anthony Shaw

https://textbookfull.com/product/cpython-internals-your-guide-to-
the-python-3-interpreter-1st-edition-anthony-shaw/

Introduction to Machine Learning with Python A Guide


for Data Scientists Andreas C. Müller

https://textbookfull.com/product/introduction-to-machine-
learning-with-python-a-guide-for-data-scientists-andreas-c-
muller/

Mastering Machine Learning with Python in Six Steps: A


Practical Implementation Guide to Predictive Data
Analytics Using Python 1st Edition Manohar Swamynathan
(Auth.)
https://textbookfull.com/product/mastering-machine-learning-with-
python-in-six-steps-a-practical-implementation-guide-to-
predictive-data-analytics-using-python-1st-edition-manohar-
swamynathan-auth/

Teach Your Kids to Code A Parent Friendly Guide to


Python Programming 1st Edition Bryson Payne

https://textbookfull.com/product/teach-your-kids-to-code-a-
parent-friendly-guide-to-python-programming-1st-edition-bryson-
payne/
Python
3 books in 1

Beginner’s guide, Data science and Machine


learning.
The easiest guide to get started in Python
programming. Unlock your programmer potential
and develop your project in just 30 days.

William Dimick
© Copyright 2020 - All rights reserved.
The content contained within this book may not be reproduced, duplicated or transmitted without
direct written permission from the author or the publisher.
Under no circumstances will any blame or legal responsibility be held against the publisher, or
author, for any damages, reparation, or monetary loss due to the information contained within this
book. Either directly or indirectly.
Legal Notice:
This book is copyright protected. This book is only for personal use. You cannot amend, distribute,
sell, use, quote or paraphrase any part, or the content within this book, without the consent of the
author or publisher.
Disclaimer Notice:
Please note the information contained within this document is for educational and entertainment
purposes only. All effort has been executed to present accurate, up to date, and reliable, complete
information. No warranties of any kind are declared or implied. Readers acknowledge that the author
is not engaging in the rendering of legal, financial, medical or professional advice. The content
within this book has been derived from various sources. Please consult a licensed professional before
attempting any techniques outlined in this book.
By reading this document, the reader agrees that under no circumstances is the author responsible for
any losses, direct or indirect, which are incurred as a result of the use of the information contained
within this document, including, but not limited to, — errors, omissions, or inaccuracies.
Python for beginners
Introduction
Chapter 1: Installing Python
Lосаl Envіrоnmеnt Sеtuр
Gеttіng Pуthоn
Inѕtаllіng Pуthоn
Hеrе Is A Quick Оvеrvіеw Оf Installing Python Оn Various Platforms:
Unіx And Lіnux Installation
Wіndоwѕ Installation
Macintosh Inѕtаllаtіоn
Setting Uр PATH
Sеttіng Path at Unіx/Lіnux
Sеttіng Раth Аt Windows
Pуthоn Environment Variables
Runnіng Pуthоn
Intеrасtіvе Interpreter
Script from The Cоmmаnd-Lіnе
Intеgrаtеd Dеvеlорmеnt Envіrоnmеnt
IDLE
A Fіlе Edіtоr
Edіtіng A Fіlе
How to Improve Yоur Wоrkflоw
Chapter 2: Python Loops and Numbers
Loops
Numbers
Chapter 3: Data Types
String Manipulation
String Formatting
Type Casting
Assignment and Formatting Exercise
Chapter 4: Variable in Python
Variable Vs. Constants
Variables Vs. Literals
Variables Vs. Arrays
Classifications of Python Arrays Essential for Variables
Naming Variables
Learning Python Strings, Numbers and Tuple
Types of Data Variables
Chapter 5: Inputs, Printing, And Formatting Outputs
Inputs
Printing and Formatting Outputs
Input and Formatting Exercise
Chapter 6: Mathematical Notation, Basic Terminology, and Building
Machine Learning Systems
Mathematical Notation for Machine Learning
Terminologies Used for Machine Learning
Chapter 7: Lists and Sets Python
Lists
Sets
Chapter 8: Conditions Statements
“if” statements
Else Statements
Code Blocks
While
For Loop
Break
Infinite Loop
Continue
Practice Exercise
Chapter 9: Iteration
While Statement
Definite and Indefinite Loops
The for Statement
Chapter 10: Functions and Control Flow Statements in Python
What is a Function?
Defining Functions
Call Function
Parameters of Function
Default Parameters
What is the control flow statements?
break statement
continue statement
pass statement
else statement
Conclusion:
Python for Data Science
Introduction:
Chapter 1 : What is Data Analysis?
Chapter 2: The Basics of the Python Language
The Statements
The Python Operators
The Keywords
Working with Comments
The Python Class
How to Name Your Identifiers
Python Functions
Chapter 3: Using Pandas
Pandas
Chapter 4: Working with Python for Data Science
Why Python Is Important?
What Is Python?
Python's Position in Data Science
Data Cleaning
Data Visualization
Feature Extraction
Model Building
Python Installation
Installation Under Windows
Conda
Spyder
Installation Under MAC
Installation Under Linux
Install Python
Chapter 5: Indexing and Selecting Arrays
Conditional selection
NumPy Array Operations
Array – Array Operations
Array – Scalar operations
Chapter 6: K-Nearest Neighbors Algorithm
Splitting the Dataset
Feature Scaling
Training the Algorithm
Evaluating the Accuracy
K Means Clustering
Data Preparation
Visualizing the Data
Creating Clusters
Chapter 7: Big Data
The Challenge
Applications in the Real World
Chapter 8: Reading Data in your Script
Reading data from a file
Dealing with corrupt data
Chapter 9: The Basics of Machine Learning
The Learning Framework
PAC Learning Strategies
The Generalization Models
Chapter 10: Using Scikit-Learn
Uses of Scikit-Learn
Representing Data in Scikit-Learn
Tabular Data
Features Matrix
Target Arrays
Understanding the API
Conclusion:
Machine learning with Python
Introduction:
Chapter 1: Python Installation
Anaconda Python Installation
Jupyter Notebook
Fundamentals of Python programming
Chapter 2: Python for Machine Learning
Chapter 3: Data Scrubbing
What is Data Scrubbing?
Removing Variables
One-hot Encoding
Drop Missing Values
Chapter 4: Data Mining Categories
Predictive Modeling
Analysis of Associations
Group Analysis
Anomaly Detection
Chapter 5: Difference Between Machine Learning and AI
What is artificial intelligence?
How is machine learning different?
Chapter 6: K-Means Clustering
Data Preparation
Visualizing the Data
Creating Clusters
Chapter 7: Linear Regression with Python
Chapter 8: Feature Engineering
Rescaling Techniques
Creating Derived Variables
Non-Numeric Features
Chapter 9: How Do Convolutional Neural Networks Work?
Pixels and Neurons
The Pre-Processing
Convolutions
Filter: Kernel Set
Activation Function
Subsampling
Subsampling with Max-Pooling
Now, More Convolutions!
Connect With a "Traditional" Neural Network
Chapter 10: Top AI Frameworks and Machine Learning Libraries
TеnѕоrFlоw
Ѕсikit-lеаrn
AI as a Dаtа Analyst
Thеаnо
Caffe
Keras
Miсrоѕоft Cоgnitivе Tооlkit
PyTorch
Tоrсh
Chapter 11: The Future of Machine Learning
Conclusion:
PYTHON FOR BEGINNERS:

The survival guide to start programming


from scratch. Get involved in the learning
process, master Python code and reach your
goals now without efforts.

William Dimick
© Copyright 2020 - All rights reserved.
The content contained within this book may not be reproduced, duplicated or transmitted without
direct written permission from the author or the publisher.
Under no circumstances will any blame or legal responsibility be held against the publisher, or
author, for any damages, reparation, or monetary loss due to the information contained within this
book. Either directly or indirectly.
Legal Notice:
This book is copyright protected. This book is only for personal use. You cannot amend, distribute,
sell, use, quote or paraphrase any part, or the content within this book, without the consent of the
author or publisher.
Disclaimer Notice:
Please note the information contained within this document is for educational and entertainment
purposes only. All effort has been executed to present accurate, up to date, and reliable, complete
information. No warranties of any kind are declared or implied. Readers acknowledge that the author
is not engaging in the rendering of legal, financial, medical or professional advice. The content
within this book has been derived from various sources. Please consult a licensed professional before
attempting any techniques outlined in this book.
By reading this document, the reader agrees that under no circumstances is the author responsible for
any losses, direct or indirect, which are incurred as a result of the use of the information contained
within this document, including, but not limited to, — errors, omissions, or inaccuracies.
Introduction

So, you have heard about this programming language that everyone
considers amazing, easy and fast…. the language of the future. You sit with
your friends, and all they have to talk about is essentially gibberish to you,
and yet it seems interesting to the rest of them. Perhaps you plan to lead a
business, and a little research into things reveals that a specific language is
quite a lot in demand these days. Sure enough, you can hire someone to do
the job for you, but how would you know if the job is being done the way
you want it to be, top-notch in quality and original in nature?
Whether you aim to pursue a career out of this journey, you are about to
embark on or set up your own business to serve hundreds of thousands of
clients who are looking for someone like you; you need to learn Python.
When it comes to Python, there are so many videos and tutorials which you
can find online. The problem is that each seems to be heading in a different
direction. There is no way to tell which structure you need to follow, or
where you should begin and where should it end. There is a good possibility
you might come across a video that seemingly answers your call, only to
find out that the narrator is not explaining much and pretty much all you
see, you have to guess what it does.
I have seen quite a few tutorials like that by myself. They can be annoying
and some even misleading. Some programmers will tell you that you are
already too late to learn Python and that you will not garner the kind of
success you seek out for yourself. Let me put such rumors and ill-messages
to rest.
● Age – It is just a number. What truly matters are the desire you have to
learn. You do not need to be X years old to learn this effectively.
Similarly, there is no upper limit of Y years for the learning process.
You can be 60 and still be able to learn the language and execute
brilliant commands. All it requires is a mind that is ready to learn and a
piece of good knowledge on how to operate a computer, open and close
programs, and download stuff from the internet. That’s it!
● Language – Whether you are a native English speaker or a non-native
one, the language is open for all. As long as you can form basic
sentences and make sense out of them, you should easily be able to
understand the language of Python itself. It follows something called the
“clean-code” concept, which effectively promotes the readability of
codes.
● Python is two decades old already – If you are worried that you are two
decades late, let me remind you that Python is a progressive language in
nature. That means, every year, we find new additions to the language of
Python, and some obsolete components are removed as well. Therefore,
the concept of “being too late” already stands void. You can learn today,
and you will already be familiar with every command by the end of a
year. Whatever has existed so far, you will already know. What would
follow then, you will eventually pick up. There is no such thing as being
too late to learn Python.
Of course, some people are successful and some not. Everything boils down
to how effectively and creatively you use the language to execute problems
and solutions. The more original your program is, the better you fare off.
“I vow that I will give my best to learn the language of Python and master
the basics. I also promise to practice writing codes and programs after I am
done with this book.”
Bravo! You just took the first step. Now, we are ready to turn the clock back
a little and see exactly where Python came from. If you went through the
introduction, I gave you a brief on how Python came into existence, but I
left out quite a few parts. Let us look into those and see why Python was the
need of the hour.
Before the inception of Python, and the famous language that it has gone on
to become, things were quite different. Imagine a world where programmers
gathered from across the globe in a huge computer lab. You have some of
the finest minds from the planet, working together towards a common goal,
whatever that might be. Naturally, even the finest intellectuals can end up
making mistakes.
Suppose one such programmer ended up creating a program, and he is not
too sure of what went wrong. The room is full of other programmers, and
sure enough, approaching someone for assistance would be the first thought
of the day. The programmer approaches another busy person who gladly
decides to help out a fellow intellectual programmer. Within that brief walk
from one station to the other, the programmer quickly exchanges the
information, which seems to be a common error. It is only when the
programmer views the code that they are caught off-guard. This fellow
member has no idea what any of the code does. The variables are labeled
with what can only be defined as encryptions. The words do not make any
sense, nor is there any way to find out where the error lies.
The compiler continues to throw in error after error. Remember, this was
well before 1991 when people did not have IDEs, which would help them
see where the error is and what needs to be done. The entire exercise would
end up wasting hours upon hours just to figure out that a semi-colon was
missing. Embarrassing and time-wasting!
This was just a small example, imagine the entire thing but on a global
scale. The programming community struggled to find ways to write codes
that could be understood easily by others. Some languages supported some
syntaxes, while others did not. These languages would not necessarily work
in harmony with each other, either. The world of programming was a mess.
Had Python not come at the opportune moment that it did, things would
have been so much more difficult for us to handle.
Guido Van Rossum, a Dutch-programmer, decided to work on a pet project.
Yes, you read that, right! Mr. Van Rossum wanted to keep himself occupied
during the holiday season and, hence, decided to write a new interpreter for
a language he had been thinking of lately. He decided to call the language
Python, and contrary to popular belief, it has nothing to do with the reptile
itself. Tracing its root from its predecessor, the ABC, Python came into
existence just when it was needed.
For our non-programming friends, ABC is the name of an old programming
language. Funny as it may sound, naming conventions wasn't exactly the
strongest here.
Python was quickly accepted by the programming community, albeit there
is the fact that programmers were a lot less numerous back then. It’s
revolutionary user-friendliness, responsive nature and adaptability
immediately caught the attention of everyone around. The more people
vested their time into this new language, the more Mr. Van Rossum started
investing his resources and knowledge to enhance the experience further.
Within a short period, Python was competing against the then leading
languages of the world. It soon went on to outlive quite a few of them
owing to the core concept is brought to the table: ease of readability. Unlike
any other programming language of that time, Python delivered codes that
were phenomenally easy to read and understand right away.
Remember our friend, the programmer, who asked for assistance? If he
were to do that now, the other fellow would immediately understand what
was going on.
Python also acquired fame for being a language that had an object-oriented
approach. This opened more usability of the language to the programmers
who required an effective way to manipulate objects. Think of a simple
game. Anything you see within it is an object that behaves in a certain way.
Giving that object that ‘sense’ is object-oriented programming (OOP).
Python was able to pull that off rather easily. Python is considered as a
multi-paradigm language, with OOP being a part of that as well.
Fast forward to the world we live in, and Python continues to dominate
some of the cutting-edge technologies in existence. With real-world
applications and a goliath of a contribution to aspects like machine learning,
data sciences, and analytics, Python is leading the charge with full force.
An entire community of programmers has dedicated their careers to
maintain Python and develop it as time goes by. As for the founder, Mr. Van
Rossum initially accepted the title of Benevolent Dictator for Life (BDFL)
and retired on 12 July 2018. This title was bestowed upon Mr. Van Rossum
by the Python community.
Today, Python 3 is the leading version of the language alongside Python 2,
which has its days numbered. You do not need to learn both of these to
succeed. We will begin with the latest version of Python as almost
everything that was involved in the previous version was carried forward,
except for components that were either dull or useless.
I know, right about now you are rather eager to dive into the concepts and
get done with history. It is vital for us to learn a few things about the
language and why it came into existence in the first place. This information
might be useful at some point in time, especially if you were to look at
various codes and identify which one of those was written in Python and
which one was not.
For anyone who may have used languages like C, C++, C#, JavaScript, you
might find quite a few similarities within Python, and some major
improvements too. Unlike in most of these languages, where you need to
use a semicolon to let the compiler know that the line has ended, Python
needs none of that. Just press enter and the program immediately
understands that the line has ended.
Before we do jump ahead, remember how some skeptics would have you
believe it is too late to learn Python? It is because of Python that self-
driving cars are coming into existence. Has the world seen too much of
them already? When was the last time you saw one of these vehicles on the
road? This is just one of a gazillion possibilities that lay ahead for us to
conquer. All it needs is for us to learn the language, brush up our skills, and
get started.
“A journey to a thousand miles begins with the first step. After that, you are
already one step closer to your destination.”
Chapter 1: Installing Python

Pуthоn can bе оbtаіnеd frоm thе Pуthоn Sоftwаrе Fоundаtіоn website аt


руthоn.оrg. Tурісаllу, thаt involves downloading the аррrорrіаtе іnѕtаllеr
fоr your ореrаtіng ѕуѕtеm аnd running it on your mасhіnе. Sоmе ореrаtіng
ѕуѕtеmѕ, nоtаblу Lіnux, provide a расkаgе manager thаt саn bе run to
іnѕtаll Pуthоn.
Pуthоn іѕ аvаіlаblе on a wіdе vаrіеtу оf platforms including Linux аnd Mac
OS X. Lеt'ѕ undеrѕtаnd hоw tо ѕеt uр оur Pуthоn environment.
Lосаl Envіrоnmеnt Sеtuр
Open a tеrmіnаl wіndоw and type "руthоn" tо fіnd оut іf іt is already
іnѕtаllеd and whісh vеrѕіоn іѕ іnѕtаllеd.

Unіx (Sоlаrіѕ, Linux, FrееBSD, AIX, HP/UX, SunOS, IRIX,


еtс.)
Wіn 9x/NT/2000
Macintosh (Intel, PPC, 68K)
OS/2
DOS (multiple versions)
PаlmOS
Nokia mоbіlе рhоnеѕ
Wіndоwѕ CE
Acorn/RISC OS
BеOS
Amiga
VMS/OpenVMS
QNX
VxWоrkѕ
Pѕіоn
Python has аlѕо bееn ported to thе Jаvа аnd .NET vіrtuаl mасhіnеѕ
Gеttіng Pуthоn
Thе mоѕt uр-tо-dаtе аnd current source code, binaries, dосumеntаtіоn,
nеwѕ, etc., is аvаіlаblе оn thе official wеbѕіtе of Pуthоn
httрѕ://www.руthоn.оrg/
Yоu саn dоwnlоаd Pуthоn dосumеntаtіоn from
https://www.python.org/doc/. Thе dосumеntаtіоn іѕ аvаіlаblе in HTML,
PDF, аnd PоѕtSсrірt fоrmаtѕ.
Inѕtаllіng Pуthоn
Python dіѕtrіbutіоn is аvаіlаblе for a wіdе variety оf рlаtfоrmѕ. Yоu nееd to
dоwnlоаd only thе binary соdе applicable for your рlаtfоrm аnd іnѕtаll
Pуthоn. If thе bіnаrу code fоr уоur platform іѕ nоt аvаіlаblе, уоu need a C
compiler tо соmріlе thе source соdе mаnuаllу. Cоmріlіng the ѕоurсе code
оffеrѕ more flеxіbіlіtу іn tеrmѕ оf сhоісе оf fеаturеѕ thаt уоu require in уоur
іnѕtаllаtіоn.
Hеrе Is A Quick Оvеrvіеw Оf Installing Python Оn Various
Platforms:
Unіx And Lіnux Installation
Here аrе thе simple steps to install Pуthоn оn Unіx/Lіnux mасhіnе.

Open a Wеb brоwѕеr and gо tо


https://www.python.org/downloads/.
Fоllоw the lіnk tо download zipped ѕоurсе соdе available
fоr Unix/Linux.
Download аnd еxtrасt files.
Edіtіng thе Modules/Setup fіlе іf уоu wаnt to сuѕtоmіzе
ѕоmе орtіоnѕ.
Run. /configure ѕсrірt
Mаkе іnѕtаll
Thіѕ installs Pуthоn аt ѕtаndаrd location /uѕr/lосаl/bіn аnd
іtѕ lіbrаrіеѕ аt /usr/local/lib/pythonxx where XX іѕ thе
vеrѕіоn оf Pуthоn.

Wіndоwѕ Installation
Hеrе аrе thе steps to install Pуthоn оn Wіndоwѕ mасhіnе.

Oреn a Wеb brоwѕеr and go tо


httрѕ://www.руthоn.оrg/dоwnlоаdѕ/.
Follow thе link fоr thе Wіndоwѕ іnѕtаllеr руthоn-XYZ.mѕі
fіlе whеrе XYZ is the vеrѕіоn уоu nееd tо install.
To uѕе thіѕ іnѕtаllеr руthоn-XYZ.mѕі, thе Wіndоwѕ ѕуѕtеm
must ѕuрроrt Mісrоѕоft Inѕtаllеr 2.0. Sаvе thе іnѕtаllеr file
tо уоur lосаl mасhіnе and thеn run іt to fіnd оut іf уоur
machine supports MSI.
Run the dоwnlоаdеd fіlе. Thіѕ brіngѕ up thе Pуthоn іnѕtаll
wіzаrd, which іѕ rеаllу еаѕу tо uѕе. Just ассерt thе dеfаult
ѕеttіngѕ, wаіt until thе install is fіnіѕhеd, and you аrе
dоnе.

Macintosh Inѕtаllаtіоn
Rесеnt Macs соmе wіth Python installed, but іt may be several
years оut оf dаtе. Sее httр://www.руthоn.оrg/dоwnlоаd/mас/ fоr
іnѕtruсtіоnѕ оn gеttіng thе сurrеnt vеrѕіоn along wіth еxtrа tооlѕ tо support
dеvеlорmеnt оn thе Mас. For оldеr Mас OS'ѕ bеfоrе Mac OS X 10.3
(rеlеаѕеd іn 2003), MacPython is available.
Setting Uр PATH
Programs and оthеr еxесutаblе fіlеѕ can be in mаnу directories, ѕо
ореrаtіng ѕуѕtеmѕ рrоvіdе a ѕеаrсh раth that lists thе directories that thе OS
searches fоr еxесutаblеѕ.
The раth is ѕtоrеd іn аn еnvіrоnmеnt variable, which іѕ a nаmеd ѕtrіng
mаіntаіnеd bу the ореrаtіng ѕуѕtеm. Thіѕ variable contains information
аvаіlаblе tо thе соmmаnd ѕhеll аnd оthеr programs. Thе раth vаrіаblе is
nаmеd аѕ PATH іn Unix оr Path in Wіndоwѕ (Unіx іѕ саѕе ѕеnѕіtіvе;
Windows іѕ not).
In Mас OS, the іnѕtаllеr hаndlеѕ the path details. Tо іnvоkе thе Python
interpreter from аnу раrtісulаr dіrесtоrу, уоu muѕt add thе Pуthоn dіrесtоrу
to уоur path.
Sеttіng Path at Unіx/Lіnux
Tо add thе pуthоn directory to thе раth fоr a раrtісulаr session іn Unix:
In the csh ѕhеll − type sentence PATH
"$PATH:/usr/local/bin/python" and рrеѕѕ Entеr.
In thе bаѕh ѕhеll (Linux) − tуре export
PATH="$PATH:/uѕr/lосаl/bіn/руthоn" and рrеѕѕ Enter.
In the sh оr kѕh ѕhеll − type PATH="$PATH:/uѕr/lосаl/bіn/
руthоn" аnd press Enter.
Nоtе − /uѕr/lосаl/bіn/руthоn іѕ the path оf thе Pуthоn
directory

Sеttіng Раth Аt Windows


Tо аdd the Python directory tо thе раth fоr a раrtісulаr ѕеѕѕіоn іn
Wіndоwѕ:

At thе соmmаnd рrоmрt − tуре раth %раth%; C:\Pуthоn


аnd рrеѕѕ Entеr.
Nоtе − C:\Python is the раth оf the Pуthоn dіrесtоrу

Pуthоn Environment Variables


Hеrе аrе іmроrtаnt environment vаrіаblеѕ, which can bе rесоgnіzеd by
Pуthоn:
Sr.No Vаrіаblе Description
.
1 PYTHONPATH It hаѕ a role ѕіmіlаr to PATH. Thіѕ
variable tells thе Pуthоn іntеrрrеtеr
where tо locate the module files
imported into a рrоgrаm. It ѕhоuld
іnсludе thе Pуthоn ѕоurсе library
dіrесtоrу and thе directories containing
Pуthоn source соdе. PYTHONPATH is
ѕоmеtіmеѕ рrеѕеt by the Pуthоn installer
2 PYTHONSTARTUP It соntаіnѕ thе path of аn initialization
fіlе containing Python ѕоurсе code. It is
executed еvеrу time you ѕtаrt thе
interpreter. It іѕ nаmеd as. руthоnrс.ру іn
Unіx аnd it соntаіnѕ commands thаt lоаd
utilities оr modify PYTHONPATH.
3 PYTHONCASEOK It іѕ uѕеd іn Wіndоwѕ to іnѕtruсt Python
to fіnd thе fіrѕt саѕе-іnѕеnѕіtіvе mаtсh іn
аn іmроrt ѕtаtеmеnt. Sеt thіѕ vаrіаblе tо
аnу value to activate it.
4 PYTHONHOME It іѕ an аltеrnаtіvе module ѕеаrсh раth. It
is uѕuаllу еmbеddеd іn the
PYTHONSTARTUP or PYTHONPATH
directories tо mаkе switching mоdulе
lіbrаrіеѕ еаѕу.

Runnіng Pуthоn
Thеrе аrе three dіffеrеnt wауѕ to start Python:
Intеrасtіvе Interpreter
Yоu can ѕtаrt Python frоm Unix, DOS, or аnу other ѕуѕtеm thаt рrоvіdеѕ
уоu a соmmаnd-lіnе interpreter оr ѕhеll window.
Enter руthоn the соmmаnd line.
Stаrt coding rіght аwау in thе interactive іntеrрrеtеr.

$руthоn # Unіx/Lіnux
or
руthоn% # Unіx/Lіnux
оr
C:> руthоn # Windows/DOS
Here іѕ thе lіѕt оf аll thе available command line орtіоnѕ:
Sr.No Option Dеѕсrірtіоn
.
1 -d It provides debug оutрut.

2 -O
It gеnеrаtеѕ optimized bуtесоdе (resulting in. руо
fіlеѕ).
3 -S
Dо not run іmроrt ѕіtе to look for Pуthоn раthѕ
оn ѕtаrtuр.

4 -v
Verbose оutрut (dеtаіlеd trасе оn іmроrt
ѕtаtеmеntѕ).

5 -X Dіѕаblе сlаѕѕ-bаѕеd buіlt-іn еxсерtіоnѕ (juѕt use


ѕtrіngѕ); оbѕоlеtе starting wіth version 1.6.

6 -с сmd Run Python ѕсrірt sent іn as cmd string

7 File
Run Python ѕсrірt from given fіlе

Script from The Cоmmаnd-Lіnе


A Pуthоn script can bе executed at соmmаnd lіnе bу invoking thе
interpreter on уоur аррlісаtіоn, as іn the fоllоwіng:

$руthоn ѕсrірt.ру # Unіx/Lіnux


or
руthоn% ѕсrірt.ру # Unіx/Lіnux
оr
C: >python script.py # Wіndоwѕ/DOS
Note: Be sure thе file permission mode аllоwѕ execution.
Intеgrаtеd Dеvеlорmеnt Envіrоnmеnt
Yоu саn run Pуthоn from a Grарhісаl Uѕеr Intеrfасе (GUI) еnvіrоnmеnt аѕ
well, іf уоu have a GUI application on уоur system thаt ѕuрроrtѕ Pуthоn.

Unіx: IDLE іѕ thе very first Unіx IDE for Pуthоn.


Windows: PythonWin іѕ the first Wіndоwѕ іntеrfасе fоr
Pуthоn аnd is аn IDE wіth a GUI.

Mасіntоѕh: The Mасіntоѕh version of Pуthоn аlоng with


the IDLE IDE is аvаіlаblе frоm thе mаіn wеbѕіtе,
dоwnlоаdаblе аѕ еіthеr MасBіnаrу or BіnHеx'd fіlеѕ.
If уоu аrе not аblе tо ѕеt uр thе еnvіrоnmеnt рrореrlу, then уоu саn tаkе
hеlр from уоur ѕуѕtеm аdmіn. Mаkе sure the Python еnvіrоnmеnt іѕ
рrореrlу ѕеt up аnd wоrkіng реrfесtlу fіnе.
Nоtе: All the еxаmрlеѕ given іn subsequent сhарtеrѕ аrе еxесutеd with
Python 2.4.3 vеrѕіоn available on CеntOS flavor of Lіnux.
IDLE
Whаt Iѕ Python IDLE?
Every Pуthоn installation соmеѕ wіth аn Intеgrаtеd Development аnd
Lеаrnіng Envіrоnmеnt, whісh you’ll see shortened to IDLE оr еvеn IDE.
Thеѕе are a class оf аррlісаtіоnѕ thаt hеlр you wrіtе соdе more еffісіеntlу.
While thеrе аrе many IDEs fоr уоu tо choose frоm, Pуthоn IDLE is very
bare-bones, whісh mаkеѕ іt the реrfесt tооl for a bеgіnnіng programmer.
Pуthоn IDLE соmеѕ іnсludеd іn Python іnѕtаllаtіоnѕ on Wіndоwѕ and Mас.
If уоu’rе a Lіnux uѕеr, thеn you ѕhоuld bе able tо fіnd and download
Pуthоn IDLE uѕіng уоur расkаgе manager. Onсе уоu’vе installed іt, you
саn then uѕе Pуthоn IDLE аѕ аn іntеrасtіvе interpreter or аѕ a fіlе еdіtоr.
IDLE іѕ іntеndеd to bе a simple IDE аnd ѕuіtаblе for bеgіnnеrѕ, еѕресіаllу
іn аn educational environment. Tо thаt еnd, іt is сrоѕѕ-рlаtfоrm, and avoids
feature clutter. According tо the іnсludеd README, its mаіn features are:

Multі-wіndоw tеxt еdіtоr wіth syntax highlighting,


autocompletion, smart іndеnt аnd оthеr.
Python ѕhеll wіth syntax highlighting.
Intеgrаtеd dеbuggеr wіth ѕtерріng, persistent brеаkроіntѕ,
аnd call stack vіѕіbіlіtу.

A Fіlе Edіtоr
Every рrоgrаmmеr nееdѕ to bе аblе to edit аnd ѕаvе text fіlеѕ. Python
programs аrе fіlеѕ with thе .py extension that соntаіn lines of Python code.
Pуthоn IDLE gives уоu thе аbіlіtу tо create and еdіt thеѕе fіlеѕ with ease.
Pуthоn IDLE аlѕо рrоvіdеѕ ѕеvеrаl uѕеful fеаturеѕ thаt you’ll see іn
рrоfеѕѕіоnаl IDEs, lіkе bаѕіс ѕуntаx hіghlіghtіng, code completion, аnd
auto-indentation. Prоfеѕѕіоnаl IDEѕ аrе mоrе robust pieces of ѕоftwаrе аnd
they have a ѕtеер lеаrnіng сurvе. If you’re juѕt bеgіnnіng уоur Pуthоn
рrоgrаmmіng jоurnеу, thеn Pуthоn IDLE is a grеаt alternative!
Edіtіng A Fіlе
Onсе you’ve ореnеd a fіlе іn Pуthоn IDLE, you саn thеn mаkе changes tо
іt. Whеn уоu’rе rеаdу tо edit a fіlе, you’ll see ѕоmеthіng lіkе thіѕ:

An opened руthоn file іn IDLE соntаіnіng a single line оf


соdе
The соntеntѕ оf уоur file аrе dіѕрlауеd in thе ореn wіndоw.
Thе bar аlоng the tор оf thе window contains three ріесеѕ
of іmроrtаnt іnfоrmаtіоn:
Thе nаmе оf thе fіlе thаt уоu’rе еdіtіng
Thе full раth tо thе fоldеr whеrе you саn fіnd thіѕ fіlе оn
your computer
Thе vеrѕіоn of Pуthоn thаt IDLE іѕ uѕіng
In thе іmаgе above, уоu’rе еdіtіng the fіlе mуFіlе.ру, whісh іѕ located in thе
Dосumеntѕ folder. Thе Python version іѕ 3.7.1, which уоu саn ѕее in
parentheses.
There аrе аlѕо twо numbеrѕ in thе bottom right соrnеr оf thе wіndоw:

Ln: ѕhоwѕ thе line number that your сurѕоr іѕ on.


Col: ѕhоwѕ thе соlumn number thаt your сurѕоr іѕ on.
It’ѕ uѕеful tо ѕее these numbers ѕо thаt уоu can fіnd еrrоrѕ more ԛ uісklу.
They also hеlр уоu mаkе sure thаt you’re staying within a certain lіnе
width. Thеrе аrе a fеw vіѕuаl сuеѕ in this wіndоw that wіll hеlр уоu
remember tо ѕаvе уоur wоrk. If you lооk closely, then уоu’ll ѕее that
Pуthоn IDLE uѕеѕ аѕtеrіѕkѕ tо lеt уоu knоw thаt уоur fіlе hаѕ unsaved
сhаngеѕ:

Shоwѕ what аn unѕаvеd fіlе lооkѕ like іn thе іdlе editor


The file name ѕhоwn іn the tор оf thе IDLE wіndоw іѕ ѕurrоundеd by
аѕtеrіѕkѕ. Thіѕ mеаnѕ that thеrе are unѕаvеd сhаngеѕ in уоur еdіtоr. You саn
ѕаvе these changes wіth your ѕуѕtеm’ѕ ѕtаndаrd kеуbоаrd shortcut, оr you
саn ѕеlесt Fіlе → Sаvе frоm thе mеnu bar. Make ѕurе thаt уоu ѕаvе your
fіlе wіth the. ру еxtеnѕіоn so thаt ѕуntаx hіghlіghtіng wіll bе еnаblеd.
How to Improve Yоur Wоrkflоw
Exploring the Variety of Random
Documents with Different Content
The Project Gutenberg eBook of Queen Zixi
of Ix; Or, the Story of the Magic Cloak
This ebook is for the use of anyone anywhere in the United States
and most other parts of the world at no cost and with almost no
restrictions whatsoever. You may copy it, give it away or re-use it
under the terms of the Project Gutenberg License included with this
ebook or online at www.gutenberg.org. If you are not located in the
United States, you will have to check the laws of the country where
you are located before using this eBook.

Title: Queen Zixi of Ix; Or, the Story of the Magic Cloak

Author: L. Frank Baum

Illustrator: Frederick Richardson

Release date: October 13, 2017 [eBook #55737]


Most recently updated: October 23, 2024

Language: English

Credits: Produced by Mary Glenn Krause, David Edwards, Eric


Gjovaag,
Sharon Joiner, Stephen Hutcheson, Carol Spears,
University
of Alberta, University of Texas, University of Michigan
and the Online Distributed Proofreading Team at
http://www.pgdp.net (This book was produced from
images
made available by the HathiTrust Digital Library.)

*** START OF THE PROJECT GUTENBERG EBOOK QUEEN ZIXI OF


IX; OR, THE STORY OF THE MAGIC CLOAK ***
WEAVING THE MAGIC CLOAK.

QUEEN ZIXI OF IX
Or, the Story of the Magic Cloak

BY

L. FRANK BAUM
AUTHOR OF “THE WIZARD OF OZ”

WITH ILLUSTRATIONS BY
FREDERICK RICHARDSON

TORONTO
THE COPP, CLARK COMPANY
LIMITED
1905

Copyright, 1904, 1905, by


L. FRANK BAUM
All Rights Reserved
Published October, 1905

PRESS OF BRAUNWORTH & CO.


BOOKBINDERS AND PRINTERS, BROOKLYN, N. Y.

FULL PAGE ILLUSTRATIONS IN THREE COLORS


BY THE DE VINNE PRESS

TO MY SON
FRANK JOSLYN BAUM
CONTENTS
CHAPTER I.
The Weaving of the Magic Cloak 3

CHAPTER II.
The Book of Laws 17

CHAPTER III.
The Gift of the Magic Cloak 29

CHAPTER IV.
King Bud of Noland 43

CHAPTER V.
Princess Fluff 55

CHAPTER VI.
Bud Dispenses Justice 67

CHAPTER VII.
The Wings of Aunt Rivette 81

CHAPTER VIII.
The Royal Reception 93

CHAPTER IX.
Jikki has a Wish Granted 107

CHAPTER X.
The Counselors Wear the Magic Cloak 117
CHAPTER XI.
The Witch-Queen 137

CHAPTER XII.
Zixi Disguises Herself 149

CHAPTER XIII.
Tullydub Rescues the Kingdom 158

CHAPTER XIV.
The Rout of the Army of Ix 173

CHAPTER XV.
The Theft of the Magic Cloak 181

CHAPTER XVI.
The Plain Above the Clouds 198

CHAPTER XVII.
The Descent of the Roly-Rogues 205

CHAPTER XVIII.
The Conquest of Noland 214

CHAPTER XIX.
The Bravery of Aunt Rivette 227

CHAPTER XX.
In the Palace of the Witch-Queen 240

CHAPTER XXI.
The Search for the Magic Cloak 251

CHAPTER XXII.
Ruffles Carries the Silver Vial 271

CHAPTER XXIII.
The Destruction of the Monsters 279
CHAPTER XXIV.
The Sailorman’s Return 289

CHAPTER XXV.
The Fairy-Queen 298

QUEEN ZIXI OF IX;


OR, THE STORY OF THE MAGIC CLOAK.
Chapter I.
THE WEAVING OF THE MAGIC CLOAK.

The fairies assembled one moonlit night in a pretty


clearing of the ancient forest of Burzee.

The clearing was in the form of a circle, and all


around stood giant oak and fir trees, while in the center
the grass grew green and soft as velvet. If any mortal
had ever penetrated so far into the great forest, and
could have looked upon the fairy circle by daylight, he
might perhaps have seen a tiny path worn in the grass
by the feet of the dancing elves. For here, during the
full of the moon, the famous fairy band, ruled by good
Queen Lulea, loved to dance and make merry while the
silvery rays flooded the clearing and caused their gauzy
wings to sparkle with every color of the rainbow.

On this especial night, however, they were not 4


dancing. For the queen had seated herself upon a little
green mound, and while her band clustered about her
she began to address the fairies in a tone of discontent.

“I am tired of dancing, my dears,” said she. “Every


evening since the moon grew big and round we have
come here to frisk about and laugh and disport
ourselves; and although those are good things to keep
the heart light, one may grow weary even of
merrymaking. So I ask you to suggest some new way to
divert both me and yourselves during this night.”
“That is a hard task,” answered one pretty sprite,
opening and folding her wings slowly—as a lady toys
with her fan. “We have lived through so many ages that
we long ago exhausted everything that might be
considered a novelty, and of all our recreations nothing
gives us such continued pleasure as dancing.”

“But I do not care to dance to-night!” replied Lulea,


with a little frown.

“We might create something, by virtue of our fairy


powers,” suggested one who reclined at the feet of the
queen.

“Ah, that is just the idea!” exclaimed the dainty Lulea, 5


with brightening countenance. “Let us create
something. But what?”

“I have heard,” remarked another member of the


band, “of a thinking-cap having been made by some
fairies in America. And whatever mortal wore this
thinking-cap was able to conceive the most noble and
beautiful thoughts.”

“That was indeed a worthy creation,” cried the little


queen. “What became of the cap?”

“The man who received it was so afraid some one


else would get it and be able to think the same
exquisite thoughts as himself that he hid it safely away
—so safely that he himself never could think afterward
where he had placed it.”

“How unfortunate! But we must not make another


thinking-cap, lest it meet a like fate. Cannot you suggest
something, else?”
“I have heard,” said another, “of certain fairies who
created a pair of enchanted boots, which would always
carry their mortal wearer away from danger—and never
into it.”

“What a great boon to those blundering mortals!” 6


cried the queen. “And whatever became of the boots?”

“They came at last into the possession of a great


general who did not know their powers. So he wore
them into battle one day, and immediately ran away,
followed by all his men, and the fight was won by the
enemy.”

“But did not the general escape danger?”

“Yes—at the expense of his reputation. So he retired


to a farm and wore out the boots tramping up and
down a country road and trying to decide why he had
suddenly become such a coward.”

“The boots were worn by the wrong man, surely,” said


the queen; “and that is why they proved a curse rather
than a blessing. But we want no enchanted boots. Think
of something else.”

“Suppose we weave a magic cloak,” proposed Espa, a


sweet little fairy who had not before spoken.

“A cloak? Indeed, we might easily weave that,”


returned the queen. “But what sort of magic powers
must it possess?”

“Let its wearer have any wish instantly fulfilled,” said


Espa, brightly.

7
“‘SUPPOSE WE WEAVE A MAGIC CLOAK.’”

But at this there arose quite a murmur of protest on


all sides, which the queen immediately silenced with a
wave of her royal hand.

“Our sister did not think of the probable 8


consequences of what she suggested,” declared Lulea,
smiling into the downcast face of little Espa, who
seemed to feel rebuked by the disapproval of the
others. “An instant’s reflection would enable her to see
that such power would give the cloak’s mortal wearer as
many privileges as we ourselves possess. And I suppose
you intended the magic cloak for a mortal wearer?” she
inquired.

“Yes,” answered Espa, shyly; “that was my intention.”

“But the idea is good, nevertheless,” continued the


queen, “and I propose we devote this evening to
weaving the magic cloak. Only, its magic shall give to its
wearer the fulfilment of but one wish; and I am quite
sure that even that should prove a great boon to the
helpless mortals.”

“Suppose more than one person wears the cloak,” one


of the band said; “which then shall have the one wish
fulfilled?”

The queen devoted a moment to thought, and then


replied:

“Each possessor of the magic cloak may have one


wish granted, provided the cloak is not stolen from its
last wearer. In that case the magic power will not be
exercised on behalf of the thief.”

“But should there not be a limit to the number of the 9


cloak’s wearers?” asked the fairy lying at the queen’s
feet.

“I think not. If used properly our gift will prove of


great value to mortals. And if we find it is misused we
can at any time take back the cloak and revoke its
magic power. So now, if we are all agreed upon this
novel amusement, let us set to work.”

At these words the fairies sprang up eagerly; and


their queen, smiling upon them, waved her wand
toward the center of the clearing. At once a beautiful
fairy loom appeared in the space. It was not such a
loom as mortals use. It consisted of a large and a small
ring of gold, supported by a tall pole of jasper. The
entire band danced around it thrice, the fairies carrying
in each hand a silver shuttle wound with glossy
filaments finer than the finest silk. And the threads on
each shuttle appeared a different hue from those of all
the other shuttles.

At a sign from the queen they one and all approached


the golden loom and fastened an end of thread in its
warp. Next moment they were gleefully dancing hither
and thither, while the silver shuttles flew swiftly from
hand to hand and the gossamer-like web began to grow
upon the loom.

Presently the queen herself took part in the sport, 10


and the thread she wove into the fabric was the magical
one which was destined to give the cloak its wondrous
power.

Long and swiftly the fairy band worked beneath the


old moon’s rays, while their feet tripped gracefully over
the grass and their joyous laughter tinkled like silver
bells and awoke the echoes of the grim forest
surrounding them. And at last they paused and threw
themselves upon the green with little sighs of content.
For the shuttles and loom had vanished; the work was
complete; and Queen Lulea stood upon the mound
holding in her hand the magic cloak.

The garment was as beautiful as it was marvelous—


each and every hue of the rainbow glinted and sparkled
from the soft folds; and while it was light in weight as
swan’s-down, its strength was so great that the fabric
was well-nigh indestructible.
The fairy band regarded it with great satisfaction, for 11
every one had assisted in its manufacture and could
admire with pardonable pride its glossy folds.

“It is very lovely, indeed!” cried little Espa. “But to


whom shall we present it?”

The question aroused a dozen suggestions, each fairy


seeming to favor a different mortal. Every member of
this band, as you doubtless know, was the unseen
guardian of some man or woman or child in the great
world beyond the forest, and it was but natural that
each should wish her own ward have the magic cloak.

While they thus disputed, another fairy joined them


and pressed to the side of the queen.

“Welcome, Ereol,” said Lulea. “You are late.”

The new-comer was very lovely in appearance, and


with her fluffy golden hair and clear blue eyes was
marvelously fair to look upon. In a low, grave voice she
answered the queen:

“Yes, your Majesty, I am late. But I could not help it.


The old King of Noland, whose guardian I have been
since his birth, has passed away this evening, and I
could not bear to leave him until the end came.”

“So the old king is dead at last!” said the queen, 12


thoughtfully. “He was a good man, but woefully
uninteresting; and he must have wearied you greatly at
times, my sweet Ereol.”
“‘YES, YOUR MAJESTY, I AM LATE.’”

“All mortals are, I think, wearisome,” returned the


fairy, with a sigh.

“And who is the new King of Noland?” asked Lulea.

“There is none,” answered Ereol. “The old king died 13


without a single relative to succeed to his throne, and
his five high counselors were in a great dilemma when I
came away.”

“Well, my dear, you may rest and enjoy yourself for a


period, in order to regain your old lightsome spirits. By
and by I will appoint you guardian to some newly born
babe, that your duties may be less arduous. But I am
sorry you were not with us to-night, for we have had
rare sport. See! we have woven a magic cloak.”

Ereol examined the garment with pleasure.

“And who is to wear it?” she asked.

Then again arose the good-natured dispute as to


which mortal in all the world should possess the magic
cloak. Finally the queen, laughing at the arguments of
her band, said to them:

“Come! Let us leave the decision to the Man in the


Moon. He has been watching us with a great deal of
amusement, and once, I am sure, I caught him winking
at us in quite a roguish way.”

At this every head was turned toward the moon; and


then a man’s face, full-bearded and wrinkled, but with a
jolly look upon the rough features, appeared sharply
defined upon the moon’s broad surface.

“So I’m to decide another dispute, eh?” said he, in a 14


clear voice. “Well, my dears, what is it this time?”

“We wish you to say what mortal shall wear the magic
cloak which I and the ladies of my court have woven,”
replied Queen Lulea.

“Give it to the first unhappy person you meet,” said


the Man in the Moon. “The happy mortals have no need
of magic cloaks.” And with this advice the friendly face
of the Man in the Moon faded away until only the
outlines remained visible against the silver disk.

The queen clapped her hands delightedly.


“‘GIVE IT TO THE FIRST UNHAPPY PERSON YOU MEET.’”

“Our Man in the Moon is very wise,” she declared; 15


“and we shall follow his suggestion. Go, Ereol, since you
are free for a time, and carry the magic cloak to Noland.
And the first person you meet who is really unhappy, be
it man, woman, or child, shall receive from you the
cloak as a gift from our fairy band.”
Ereol bowed, and folded the cloak over her arm.

“Come, my children,” continued Lulea; “the moon is


hiding behind the tree-tops, and it is time for us to
depart.”

“SAID THE MAN IN THE MOON.”

A moment later the fairies had disappeared, and the


clearing wherein they had danced and woven the magic
cloak lay shrouded in deepest gloom.

16
JIKKI.

17
Chapter II.
THE BOOK OF LAWS.

On this same night great confusion and excitement


prevailed among the five high counselors of the
kingdom of Noland. The old king was dead and there
was none to succeed him as ruler of the country. He
had outlived every one of his relatives, and since the
crown had been in this one family for generations, it
puzzled the high counselors to decide upon a fitting
successor.

These five high counselors were very important men.


It was said that they ruled the kingdom while the king
ruled them; which made it quite easy for the king and
rather difficult for the people. The chief counselor was
named Tullydub. He was old and very pompous, and
had a great respect for the laws of the land. The next in
rank was Tollydob, the lord high general of the king’s
army. The third was Tillydib, the lord high purse-bearer.
The fourth was Tallydab, the lord high steward. And the
fifth and last of the high counselors was Tellydeb, the
lord high executioner.

These five had been careful not to tell the people 18


when the old king had become ill, for they feared being
annoyed by many foolish questions. They sat in a big
room next the bed-chamber of the king, in the royal
palace of Nole,—which is the capital city of Noland,—
and kept every one out except the king’s physician, who
was half blind and wholly dumb and could not gossip
with outsiders had he wanted to. And while the high
counselors sat and waited for the king to recover or die,
as he might choose, Jikki waited upon them and
brought them their meals.

Jikki was the king’s valet and principal servant. He


was as old as any of the five high counselors; but they
were all fat, whereas Jikki was wonderfully lean and
thin; and the counselors were solemn and dignified,
whereas Jikki was terribly nervous and very talkative.

“Beg pardon, my masters,” he would say every five 19


minutes, “but do you think his Majesty will get well?”
And then, before any of the high counselors could
collect themselves to answer, he continued: “Beg
pardon, but do you think his Majesty will die?” And the
next moment he would say: “Beg pardon, but do you
think his Majesty is any better or any worse?”

And all this was so annoying to the high counselors


that several times one of them took up some object in
the room with the intention of hurling it at Jikki’s head;
but before he could throw it the old servant had
nervously turned away and left the room.

Tellydeb, the lord high executioner, would often sigh:


“I wish there were some law that would permit me to
chop off Jikki’s head.” But then Tullydub, the chief
counselor, would say gloomily; “There is no law but the
king’s will, and he insists that Jikki be allowed to live.”

So they were forced to bear with Jikki as best they


could; but after the king breathed his last breath the old
servant became more nervous and annoying than ever.
Hearing that the king was dead, Jikki made a rush for 20
the door of the bell-tower, but tripped over the foot of
Tollydob and fell upon the marble floor so violently that
his bones rattled, and he picked himself up half dazed
by the fall.

“Where are you going?” asked Tollydob.

“To toll the bell for the king’s death,” answered Jikki.

“‘WHERE ARE YOU GOING?’ ASKED TOLLYDOB.”


“Well, remain here until we give you permission to
go,” commanded the lord high general.

“But the bell ought to be tolled!” said Jikki.

“Be silent!” growled the lord high purse-bearer. “We 21


know what ought to be done and what ought not to be
done.”

But this was not strictly true. In fact, the five high
counselors did not know what ought to be done under
these strange circumstances.

If they told the people the king was dead, and did not
immediately appoint his successor, then the whole
population would lose faith in them and fall to fighting
and quarreling among themselves as to who should
become king; and that would never in the world do.

No; it was evident that a new king must be chosen


before they told the people that the old king was dead.

But whom should they choose for the new king? That
was the important question.

While they talked of these matters, the ever-active


Jikki kept rushing in and saying:

“Hadn’t I better toll the bell?”

“No!” they would shout in a chorus; and then Jikki


would rush out again.

So they sat and thought and counseled together 22


during the whole long night, and by morning they were
no nearer a solution of the problem than before.
At daybreak Jikki stuck his head into the room and
said:

“Hadn’t I better—”

“No!” they all shouted in a breath.

“Very well,” returned Jikki; “I was only going to ask if


I hadn’t better get you some breakfast.”

“Yes!” they cried, again in one breath.

“And shall I toll the bell?”

“No!” they screamed; and the lord high steward threw


an inkstand that hit the door several seconds after Jikki
had closed it and disappeared.

While they were at breakfast they again discussed


their future action in the choice of a king; and finally the
chief counselor had a thought that caused him to start
so suddenly that he nearly choked.

“The book!” he gasped, staring at his brother


counselors in a rather wild manner.

“What book?” asked the lord high general.

“The book of laws,” answered the chief counselor.

“I never knew there was such a thing,” remarked the


lord high executioner, looking puzzled. “I always thought
the king’s will was the law.”

“So it was! So it was when we had a king,” answered 23


Tullydub, excitedly. “But this book of laws was written
years ago, and was meant to be used when the king
was absent, or ill, or asleep.”
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade

Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.

Let us accompany you on the journey of exploring knowledge and


personal growth!

textbookfull.com

You might also like