Get (Ebook) Python Projects for Beginners: A Ten-Week Bootcamp Approach to Python Programming by Milliken, Connor P. ISBN 9781484253540, 148425354X free all chapters
Get (Ebook) Python Projects for Beginners: A Ten-Week Bootcamp Approach to Python Programming by Milliken, Connor P. ISBN 9781484253540, 148425354X free all chapters
com
https://ebooknice.com/product/python-projects-for-beginners-
a-ten-week-bootcamp-approach-to-python-programming-55660652
DOWLOAD EBOOK
ebooknice.com
https://ebooknice.com/product/python-programming-learn-to-use-python-
in-hacking-for-beginners-in-7-days-50790670
ebooknice.com
https://ebooknice.com/product/python-programming-for-
beginners-49556274
ebooknice.com
ebooknice.com
ebooknice.com
https://ebooknice.com/product/python-artificial-intelligence-projects-
for-beginners-57811322
ebooknice.com
https://ebooknice.com/product/a-beginners-guide-to-
python-3-programming-2nd-edition-51881162
ebooknice.com
https://ebooknice.com/product/python-mastery-a-code-like-a-pro-guide-
for-python-beginners-6855718
ebooknice.com
Python Projects
for Beginners
A Ten-Week Bootcamp Approach to
Python Programming
—
Connor P. Milliken
Python Projects for
Beginners
A Ten-Week Bootcamp Approach to
Python Programming
Connor P. Milliken
Python Projects for Beginners
Connor P. Milliken
Derry, NH, USA
Anytime I have a bad day, I know you’ll always be there for me.
I thought that I would only find you in my dreams, but here you are,
standing in front of me, looking beautiful as ever.
From the day I met you, I knew I wanted to give you everything.
Your dreams have become my dreams, and whatever you want in life,
I will always love you, past forever, with all my heart and soul.
v
Table of Contents
vi
Table of Contents
vii
Table of Contents
viii
Table of Contents
ix
Table of Contents
x
Table of Contents
xi
Table of Contents
xii
Table of Contents
xiii
Table of Contents
xiv
Table of Contents
xv
Table of Contents
xvi
Table of Contents
xvii
Table of Contents
xviii
Table of Contents
Index��������������������������������������������������������������������������������������������������������������������� 325
xix
About the Author
Connor P. Milliken Focused on helping others achieve their
goals through education and technology, Connor P. Milliken
brings a wealth of programming and business experience to
his classes.
He graduated with a computer science degree from
Daniel Webster College and is pursuing a master’s in
computer science with a focus in interactive intelligence
from Georgia Tech.
Before becoming an instructor at Coding Temple, he was
designing simulators in the video game industry for several
years. During that time, he took on a vast number of roles
from business to programming that he used to release a total of 11 different titles on PC
and co-created an award-winning football card game called “Masters of the Gridiron.”
Connor has experience in more than seven different languages and three frameworks.
He focuses primarily in web development and data analytics using Python. When this
book was written, he taught for a coding bootcamp in Boston, MA, where students
can learn Python, web development, and data analytics over a 10-week full-time course.
He is now a software engineer at Hubspot, Inc. in Cambridge, MA.
Github: Connor-SM
xxi
About the Technical Reviewer
Bharath Thiruveedula currently works for a major telco
service provider. He is core reviewer and key contributor to
various OpenStack/ONAP projects. Bharath is passionate
about open source technologies and is an evangelist who
is focused on making his mark in the Cloud/Container
domains. He has been working on distributed systems and
machine learning for a significant amount of time.
xxiii
Acknowledgments
I would like to thank the following people for their generosity and help:
Jessica Boucher, who has been my rock this whole time. Your love
and support have continued to help me in all my endeavors. I’m
truly blessed to have you in my life.
Kirsten Arnold, who created all the art within this book. The work
you were able to create from my poor drawing skills was exactly
what I had imagined.
xxv
Acknowledgments
xxvi
CHAPTER 1
Getting Started
Hello there! Welcome to your first step toward becoming a Python developer. Exciting
isn’t it? Whether you’re just beginning to learn how to program, or have experience in
other languages, the lessons taught in this book will help to accelerate your goals. As a
Python instructor, I can guarantee you that it’s not about where you start, it’s about how
hard you’re willing to work.
At the time of writing this book, my daily job is a coding bootcamp instructor where I
teach students how to go from zero programming experience to professional developers
in just ten weeks. This book was designed with the intent to bring a bootcamp-based
approach to text. This book aims to help you learn subjects that are valuable to becoming
a professional developer with Python.
Each subsequent chapter will have an overview and a brief description of what we’ll
cover that week. This week we’ll be covering all the necessary basics to get us jump
started. Following the age old saying, “You must learn to walk before you can run,” we
must understand what our tools are and how to use them before we can begin coding.
Overview
1
© Connor P. Milliken 2020
C. P. Milliken, Python Projects for Beginners, https://doi.org/10.1007/978-1-4842-5355-7_1
Chapter 1 Getting Started
Monday: Introduction
Almost every programmer remembers that “Aha!” moment, when everything clicked
for them. For me that was when I picked up Python. After years of computer science
education, one of the best methods I found to learn was by building applications and
applying the knowledge you learn. That’s why this book will have you coding along
rather than reading about the theory behind programming. Python makes it simple to
pick up concepts otherwise difficult in other languages. This makes it a great language
for breaking into the development industry!
You may have already noticed that the structure of this book is different than most.
Instead of chapters, we have each topic separated by weeks or days. Notice the current
header for the section. This is part of the bootcamp-based approach, so that you may set
goals for each day. There will be two ways to follow along this book:
If you’d like to follow the 10-week approach, then think of each chapter as a weekly
goal. All chapters are broken up further into daily segments Monday to Friday. The
first four days, Monday through Thursday, will introduce new concepts to understand.
Friday, or better known as Project Day, is where we will create a program together
based on the lessons learned throughout the week. The focus is that you set aside 30–60
minutes each day to complete each daily task.
If you’re eager enough to try the bootcamp style, where you learn all the material
in ten days, then think of each chapter as a single day. Granted, you must know that in
order to complete this book in ten days, you will need to dedicate around 8 hours per
day, which is a typical day for coding bootcamp students. In bootcamps (like the one I
taught), we go over several concepts daily, and each subsequent day we reiterate the
topics learned from previous lessons. This helps to accelerate the process of learning
each concept.
What Is Python?
Python is an interpreted, high-level, general-purpose programming language. To
understand what each of these descriptions mean, let’s make a few comparisons:
2
Chapter 1 Getting Started
Python also emphasizes code readability and uses whitespace to separate snippets of
code. We’ll learn more about how whitespace in Python works as we get into our lessons,
but for now just know that Python is a great first language to break into the computer
science industry.
Why Python?
I could go on about why Python is so amazing, but a simple Google search would do
that for me. Python is one of the easier languages to learn. Notice I said “easier” and
not “easy”… that’s because programming is still difficult, but Python reads closer to
the English language than most other languages. This is one of the benefits of learning
Python, because concepts that you learn from this book are still applicable to other
languages. Python is also one of the most sought-after skills in the technology industry
today, used by companies such as Google, Facebook, IBM, etc. It’s been used to build
applications like Instagram, Pinterest, Dropbox, and much more!
3
Chapter 1 Getting Started
It’s also one of the fastest growing languages in 2019, climbing to the top 3 languages
to learn for the future.1 How well does it pay though? According to Indeed.com, the
average salary in 2018 was around $117,000 USD!2 That’s a lot of monopoly money!
One of the biggest reasons for learning Python, though, must be the use of the
language itself. It’s used in several different industries: front-end development, back-end
development, full-stack, testing, data analytics, data science, web design, etc., which
makes it a useful language.
1
w ww.tiobe.com/tiobe-index/
2
www.indeed.com/salaries/Python-Developer-Salaries
4
Chapter 1 Getting Started
• Did you take computer science courses previously, but they just
didn’t help you learn how to create applications?
This book is designed for a wide array of readers, no matter your background. The
real question is on you, “How hard are you willing to work?” The concepts taught in
this book can benefit anyone willing to learn. Even if you’ve programmed in Python
before, this book can still help you become a stronger developer.
Tomorrow, we’ll find out how to install the necessary software that this book
uses. If you already have Anaconda and Python on your machine, you can skip to
Wednesday’s lesson.
5
Random documents with unrelated
content Scribd suggests to you:
Monazite has also been observed in the tin-bearing sands of
Embabaan, Swaziland, South Africa, and in the province of Ottawa,
Canada.
CHAPTER VIII
U → 8He + Pb
238·5 → 31·92 + 207·1
and using the data calculated by Rutherford and others for the rates
of decay, he gives the age of Lower Devonian strata as about 370
million years. This figure is about twice as great as that deduced by
palæontologists from the flora and fauna, and greater still than the
times based on physical data, e.g. rates of cooling, precession and
nutation, etc. His figures for pre-Cambrian rocks, based on the same
ratio, range between 1000 and 1640 million years, the later being
deduced from a thorianite from the Archæan rocks of Ceylon.
Strutt’s figure for Archæan rocks is about 700 million years; this was
derived from work on the helium ratio, which must now be
considered.[142]
[141] Proc. Roy. Soc. 1911, A, 85, 248.
[142] See Strutt, Proc. Roy. Soc. 1908, A, 82, 166; 1909, 83, 96; 1909,
83, 298; 1910, 84, 194.
In 1898 Travers[143] had examined the effect of heat on cleveite
and fergusonite, and found that about half the total helium, together
with hydrogen, is given off at a bright red heat. He considered it
likely that the helium was combined with a metal (though he
recognised no distinction between occlusion and combination) and
remarked: ‘The results of such experiments cannot therefore serve
as a basis for speculation as to the origin or history of the
substances in question.’ The chemical inactivity of helium, however,
as well as the experiments of Moss and Gray, who showed that
helium was evolved on grinding the materials,[144] indicate that the
gas is mechanically bound only. This, however, introduces the
difficulty, if an attempt be made to use the helium-uranium ratio to
calculate the age of minerals, that the gas would be expected to
escape from a porous material, so that its amount is never so great
as it should be. Strutt himself found that helium escapes rapidly from
powdered monazite, whilst even the solid mineral was found to
evolve helium at a rate much in excess of the probable rate of
production by radioactive changes. Similar results were found with
thorianite, and the only conclusion, since helium is found in the
minerals, is that under the conditions under which these minerals
exist in the earth’s crust, this escape is checked or altogether
prevented. It follows, however, that any age determined from the
helium ratio must be a minimum age, since there is always the
chance of loss; this of course is not the case—except where the
minerals have suffered chemical changes—with the lead ratio, and
may account for the discrepancies observed.
[143] Proc. Roy. Soc. 1898-99, 64, 140.
[144] Vide Gray, Proc. Roy. Soc. 1908, A, 82, 306.
Strutt’s earlier work on the helium ratio was made with phosphate
minerals (coprolites and fossil bones) of known ages. The ratios
found were not in order of age, the minerals being very permeable,
so that helium had probably been lost. He next turned his attention
to igneous rocks, and selected zircon for the work. Here he obtained
some sort of regularity in the order of age and the order given by
the ratio, and assumed that if helium were lost at all, it must be lost
in roughly proportional amounts by reason of the similarity in
conditions. Geological criticism tends to lessen the trustworthiness of
the conclusions; it is pointed out that the age of a specimen of
zircon is not necessarily that of the rock in which it occurs, for zircon
is an extremely stable mineral, and might survive unchanged several
fusions and re-crystallisations of the magma. Strutt replies to this
that at the temperature of fusion of a rock, zircon would certainly
give up its accumulated helium, so that the age determined from the
helium content would be that of the last fusion, i.e. the age as given
by geological data. On the other hand, our ignorance of the real
mechanism of the crystallisation of a magma, and especially of the
amount and effect of the pressures obtaining, robs this reply of its
force, and the objection must be counted valid.
In still later work Strutt used sphene and thorianite, and his
results agree as well as can be expected. The sphenes used were all
from Archæan rocks, except one, which was from a Tertiary volcanic
deposit of the Laacher See, near Coblenz (the lake is in the crater of
an extinct volcano). In this case the helium ratio was very much
smaller (about 1⁄4000 of the values for Archæan rocks) indicating the
(comparatively) extremely recent formation of the deposit.
The most recent results in the study of radioactivity point to the
conclusion that elements which differ in atomic weight and
radioactive properties may be chemically identical, or at least
chemically inseparable; such elements have been termed isotopes.
The end product of the thorium series of radio-elements should have
an atomic weight of about 208·4, and it has been suggested that the
element actually produced in this series of changes may be bismuth.
The latest results, however, rather point to the conclusion that
disintegration in the thorium series gives rise to an isotope of lead. If
this hypothesis be true, the lead derived from a mineral rich in
thorium and poor in uranium should have an atomic weight
appreciably higher than that of ordinary lead. Experiments to test
this conclusion have recently been carried out by Soddy and Hyman.
[145]
CHAPTER IX
Oxides. —In their most stable state of oxidation, the rare earth
elements are generally trivalent. In the case of cerium, the dioxide,
CeO₂, is more stable than the sesquioxide Ce₂O₃, but the ceric salts
are unstable, and are very readily reduced to cerous compounds,
corresponding to the oxide Ce₂O₃. Higher oxides are known with
certainty among the other elements only in the cases of
praseodymium and terbium, but these do not give rise to salts.
The oxides R₂O₃ are fairly strong bases, being comparable in
strength to the alkaline earths, and far more strongly basic than
alumina and oxides of other trivalent elements; thus they liberate
ammonia from ammonium compounds, whilst the salts they form
with strong acids are not easily hydrolysed. Their relative strengths
as bases are expressed in the following series, in which the elements
are placed in order of diminishing electropositive character:[158]
La, Ce´´, Pr, Nd, Yt, Eu, Gd, Sa, Tb, Dy, Ho, Er, Tm, Yb, Lu, Sc, Ceiv.
[158] The position of yttrium in this series is not known with certainty; it is
probably as positive as neodymium. It is usually stated (see Meyer and
Hauser, pp. 32-33) that the terbia oxides are intermediate in basic
strength between the ceria and yttria earths, though the arrangement
into two series, consisting of the cerium and yttrium groups
respectively, is generally adopted; the electropositive character of the
elements in each series then weakens as the atomic weight rises,
scandium being of course exceptional.
It will be seen that, with the exception of scandium and yttrium,
the metals of the cerium and yttrium groups become less
electropositive as the atomic weight increases.
This arrangement is obtained by ascertaining the order in which
the various hydroxides are precipitated from a solution by gradual
addition of a dilute solution of a strong base. The weakest base is
precipitated first, and the strongest last; those intermediate in
strength are thrown down in ascending order of strength. Similar
results may be obtained by the fractional decomposition of the
nitrates by heat; in this case the nitrate of the weakest base is
decomposed at the lowest temperature. This order is also confirmed,
as far as the data are available, by measurements of the equivalent
conductivities of solutions of the salts (see, for example, p. 122).
Quite recently, a very different order has been obtained from a
consideration of the dissociation tensions, and of the heats of
dissociation of the anhydrous sulphates.[159] In the following table
the elements are arranged in the order of the increase of the
dissociation tension (T) measured at 900°, which is the same as the
order of decrease of the heats of dissociation (Q):
Element At. Wt. T. (Mm. Hg.) Q.
La 139 ·0 2 59·8
Yt 89 ·0 3 58·9
Lu 174 ·0 3 ·5 58·5
Yb 172 ·0 4 58·2
Er 167 ·7 5 57·6
Pr 140 ·6 5 ·5 57·4
Nd 144 ·3 6 57·2
Gd 157 ·3 7 56·9
Sa 150 ·4 8 56·5
Sc 44 ·1 11 54·5
Ce 140 ·25 52·4
[159] Wöhler and Grünzweig, Ber. 1913, 46, 1726.
It will be observed that the order is very different from the order
of increase of atomic weight, the positions of lutecium and ytterbium
being especially surprising; these elements are generally considered
to be among the least electropositive of the whole series. The
anomalous position of cerium is probably due to the fact that the
sulphate on decomposition leaves the dioxide, and not the
sesquioxide, as with the other elements; this would undoubtedly
affect the values. The heats of dissociation are the greatest yet
observed for the sulphates of trivalent metals, a further evidence of
the strongly basic nature of the oxides.
Ignited lanthana resembles quicklime in that it readily absorbs
carbon dioxide from the air, and hisses when slaked with water; as
the basicity becomes weaker, the affinity for water and carbon
dioxide becomes less marked. All the oxides are soluble in dilute
acids, even after prolonged ignition; but the ease with which
solution occurs is naturally much influenced by the treatment to
which the oxide has been subjected, as well as by its strength as a
base.
The rare earth oxides are capable of existing in more than one
modification, the compounds obtained by ignition of the hydroxides
differing in appearance and reactivity from those prepared by
ignition of the oxalates or nitrates, and so on; they are probably
highly polymerised. Cerium dioxide, CeO₂, is remarkable for its
power of combining with the other oxides, R₂O₃, of the rare earth
metals. The pure dioxide is insoluble in nitric acid, but mixtures of
earths containing up to 50 per cent. of the dioxide dissolve readily.
The various colours of mixtures of the ceria earths may sometimes
be attributed to a similar combination,[160] and there can be little
doubt that the dioxide sometimes functions as an acid in the rare
earth minerals.
[160] The brown colour of a mixture of ceria oxides containing
praseodymium is generally attributed to the presence of the strongly
coloured peroxide of that element.
Carbides.
—By reduction of the oxides with carbon in the electric furnace,
Moissan obtained the carbides in the form of microscopic yellow
crystals. They have the general formula RC₂, and are attacked by
water and dilute acids, with evolution of very complex mixtures of
gases.[161] The principal product is acetylene, with various higher
homologues, and in smaller quantities ethylene and ethane and their
homologues. No methane is formed,[162] but hydrogen is always
present, the olefines and paraffins probably arising from its action on
the acetylenic hydrocarbons. The relation of the rare earth elements
to the calcium group is here very close; calcium carbide when
attacked by water yields pure acetylene, whereas aluminium carbide
gives pure methane.
[161] Damiens, Compt. rend. 1913, 157, 214.
[162] Moissan stated that 24-30 per cent. of methane was formed in this
action; compare Compt. rend. 1900, 131, 595.
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.
ebooknice.com