100% found this document useful (1 vote)
14 views35 pages

Learn AI-Assisted Python Programming (MEAP V01) Leo Porterpdf download

The document is a promotional and introductory text for the book 'Learn AI-Assisted Python Programming' by Leo Porter, which focuses on using AI tools like Copilot and ChatGPT to aid in learning Python programming. It emphasizes the shift in programming education due to AI assistants, allowing beginners to write software more efficiently without needing to grasp low-level programming details. The book is designed for those interested in learning Python, regardless of prior experience, and aims to teach essential programming skills while leveraging AI technology.

Uploaded by

darronminura
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
100% found this document useful (1 vote)
14 views35 pages

Learn AI-Assisted Python Programming (MEAP V01) Leo Porterpdf download

The document is a promotional and introductory text for the book 'Learn AI-Assisted Python Programming' by Leo Porter, which focuses on using AI tools like Copilot and ChatGPT to aid in learning Python programming. It emphasizes the shift in programming education due to AI assistants, allowing beginners to write software more efficiently without needing to grasp low-level programming details. The book is designed for those interested in learning Python, regardless of prior experience, and aims to teach essential programming skills while leveraging AI technology.

Uploaded by

darronminura
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/ 35

Learn AI-Assisted Python Programming (MEAP V01)

Leo Porter pdf download

https://ebookmeta.com/product/learn-ai-assisted-python-
programming-meap-v01-leo-porter/

Download more ebook from https://ebookmeta.com


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

Creating Intelligent Products MEAP V01 Generative AI


advanced analytics smart automation Leo Porter

https://ebookmeta.com/product/creating-intelligent-products-
meap-v01-generative-ai-advanced-analytics-smart-automation-leo-
porter/

AI Assisted Testing MEAP V01 Mark Winteringham

https://ebookmeta.com/product/ai-assisted-testing-meap-v01-mark-
winteringham/

Data Storytelling with Python Altair and Generative AI


(MEAP V01) Angelica Lo Duca

https://ebookmeta.com/product/data-storytelling-with-python-
altair-and-generative-ai-meap-v01-angelica-lo-duca/

Waste Problems and Management in Developing Countries


1st Edition Umair Riaz (Editor)

https://ebookmeta.com/product/waste-problems-and-management-in-
developing-countries-1st-edition-umair-riaz-editor/
We Own This City Justin Fenton

https://ebookmeta.com/product/we-own-this-city-justin-fenton/

Mastering In-House SEO 2nd Edition Simon Schnieders

https://ebookmeta.com/product/mastering-in-house-seo-2nd-edition-
simon-schnieders/

Artificial Intelligence and Machine Learning in 2D/3D


Medical Image Processing 1st Edition Rohit Raja
(Editor)

https://ebookmeta.com/product/artificial-intelligence-and-
machine-learning-in-2d-3d-medical-image-processing-1st-edition-
rohit-raja-editor/

Harry Potter and the Deathly Hallows J K Rowling

https://ebookmeta.com/product/harry-potter-and-the-deathly-
hallows-j-k-rowling/

Be Less Zombie How Great Companies Create Dynamic


Innovation Fearless Leadership and Passionate People
1st Edition Elvin Turner

https://ebookmeta.com/product/be-less-zombie-how-great-companies-
create-dynamic-innovation-fearless-leadership-and-passionate-
people-1st-edition-elvin-turner/
Cheeseman, Business Law, 10e -R2 - CLOSED 10th Edition
Henry R. Cheeseman [Cheeseman

https://ebookmeta.com/product/cheeseman-business-
law-10e-r2-closed-10th-edition-henry-r-cheeseman-cheeseman/
Learn AI-Assisted Python Programming
1. Copyright_2023_Manning_Publications
2. welcome
3. 1_Introducing_AI-Assisted_Programming_with_Copilot
4. 2_Getting_Started_with_Copilot
5. 3_Designing_Functions
6. 4_Reading_Python_Code_–_Part_1
MEAP Edition

Manning Early Access Program

Learn AI-Assisted Python Programming

With Copilot and ChatGPT

Version 1

Copyright 2023 Manning


Publications
©Manning Publications Co. We welcome reader comments about anything in
the manuscript - other than typos and other simple mistakes.

These will be cleaned up during production of the book by copyeditors and


proofreaders.

https://livebook.manning.com/#!/book/learn-ai-assisted-python-
programming/discussion
For more information on this and other Manning titles go to

manning.com
welcome
Thank you for purchasing the MEAP for Learn AI-Assisted Python
Programming.

We’re at the start of a new era in programming. AI coding assistants are here
—ChatGPT, Copilot, and others—and they’re transforming how people
program. The two of us have spent our careers researching and enhancing
student learning of programming. We have never been more excited about
the possibilities that AI coding assistants bring for the beginner or would-be
programmer.

In this book, we fully embrace these tools and use them to offer an alternative
way to learn how to write software. We believe that new learners of Python
shouldn’t be spending time learning low-level details that are now mostly
solved by the AI coding assistants. Instead, we believe that these tools
empower you to write larger and more powerful software faster.

This book is for those who are interested in learning how to write software
with Python or for the many people who tried and failed (we get it!) to learn
how to write Python code in the traditional way. No prior programming skills
are required, but we expect you to be comfortable with installing software
and managing files.

We’ve organized the book to get you started writing software with Copilot
right from the start. Then we teach you the essential skills that you need to
program with Copilot effectively: code reading, problem decomposition, and
testing. After that, we’ll bring all the skills together to write small software
projects in meaningful domains.

At the same time, we need to caution you: it’s early. These tools seem to be
changing on a daily basis. We don’t know what programming will look like
when the dust settles. The two of us are exploring new territory with few
established answers and we are excited to start this journey with you.
If you have any questions, comments, or suggestions, please share them in
Manning’s liveBook Discussion forum for our book.

—Leo Porter and Daniel Zingaro

In this book

Copyright 2023 Manning Publications welcome brief contents 1 Introducing


AI-Assisted Programming with Copilot 2 Getting Started with Copilot 3
Designing Functions 4 Reading Python Code – Part 1
1 Introducing AI-Assisted
Programming with Copilot
This chapter covers
AI-assisted computer programming
How AI-assistants change how new programmers learn how to program
Why programming is never going to be the same
How AI assistants like Copilot work
How Copilot can solve many classic introductory programming
problems
What else you can do with an AI coding assistant
Possible perils of AI assisted programming

In this chapter, we’ll talk about how humans communicate with computers.
We’ll introduce you to your AI Assistant, Copilot, an amazing tool that uses
Artificial Intelligence (AI) to help people write software. More importantly,
we’ll show you how Copilot can help you learn how to program. We’re not
expecting that you’ve written any programs before. If you have, please don’t
skip this chapter, even if you already know a little bit about programming.
Everyone needs to know why writing programs is different now that we have
AI assistants like ChatGPT and Copilot, and that the skills we need to be
effective programmers change. As we’ll see, we also need to be vigilant,
because sometimes tools like ChatGPT and Copilot lie.

1.1 How we talk to computers


Would you be happy if we started by asking you to read and understand this?
[1]

section .text
global _start
_start:
mov ecx, 10
mov eax, '0'
l1:
mov [num], eax
mov eax, 4
mov ebx, 1
push ecx
mov ecx, num
mov edx, 1
int 0x80
mov eax, [num]
inc eax
pop ecx
loop l1
mov eax, 1
int 0x80
section .bss
num resb 1

That monstrosity prints out the numbers from 0 to 9. It's written using code in
assembly language, a low-level programming language. Low-level
programming languages, as you can see, are very far from languages that
humans can easily read and write. They’re designed for computers, not
humans.

No one wants to write programs like that. But, especially in the past, it was
sometimes necessary. Programmers could use it to do exactly what they
wanted the computer to do, down to individual instructions. This level of
control was needed in order to squeeze every bit of performance out of
underpowered computers. For example, the most speed-critical pieces of
1990s computer games such as Doom and Quake were written in assembly
language like the code above. It simply wouldn't have been possible to make
those games otherwise.

Making it a little easier

Okay, no more of that. Let's move on. Would you be happier with this?
for num in range(0, 9):
print(num)

This, by contrast, is code in the Python language and is what many


programmers use these days. Unlike assembly language, which is a low-level
language, Python is considered a high-level language because it's much closer
to natural language. Even though you don't know about Python code yet, you
might be able to guess what this program is trying to do. The first line looks
like it's doing something with the range of numbers from 0 to 9. The second
line is printing something. It may not be too hard for you to believe that this
program, just like the assembly language monstrosity, is supposed to print the
numbers from 0 to 9. Unfortunately, something is wrong with it.

While this code is closer to English, it isn’t English. It's a programming


language that, like assembly language, has specific rules. As in the code
above, misunderstanding the details of those rules can result in a broken
program.

The holy grail of communicating with a computer is to do so in a natural


language such as English. We've been talking to computers using various
programming languages over the past 70 years not because we want to, but
because we have to. Computers were simply not powerful enough for the
vagaries and idiosyncrasies of a language like English. Our programming
languages improved—from symbol soup assembly language to Python, for
example—but they are still computer languages, not natural languages.

This is changing.

Making it a lot easier

Using an AI assistant, we can now ask for what we want in English and have
the computer code written for us in response. To get a correct Python
program that does actually print the numbers from 0 to 9, we can ask our AI
assistant (Copilot) in normal English language like this:
# Output the numbers from 0 to 9

Copilot might respond to this prompt by generating something like this:


for i in range(10):
print(i)

Unlike the example we showed you before, this piece of Python code actually
works!
AI coding assistants can be used to help people write code. In this book, we
will learn how to use Copilot to write code for us. We will ask for what we
want in English, and we will get the code back in Python.

More than that, we'll be able to use Copilot as a seamless part of our
workflow. Without tools like Copilot, programmers routinely have two
windows open: the one where they write code and the other where they ask
on Google how to write code. This second window would have Google
search results, Python documentation, or forums of programmers talking
about how to write code to solve that particular problem. They're often
pasting code from these results into their code, then tweaking it slightly for
their context, trying alternatives, and so on. This has become a way of life for
programmers—but you can imagine the inefficiency here. By some estimates,
up to 35% of programmer’s time may be spent searching for code [1], and
much of the code that is found is not readily usable. This will be much
improved with Copilot helping us write our code.

1.2 About the technology


We’ll be using two main technologies in this book: Python and GitHub
Copilot.

Python is a programming language. It’s a way to communicate with a


computer. People use it to write all kinds of programs that do useful things,
like games, interactive websites, visualizations, apps for file organization,
automating routine tasks, and so on.

There are other programming languages, too, like Java, C++, Rust, and many
others. Copilot works with those, too, but at the time of writing, it works
really well with Python. Python code is a lot easier to write compared to
many other languages (especially assembly code). Even more importantly,
Python is easy to read. After all, we’re not going to be the one writing the
Python code. Our AI assistant is!

Computers don’t actually know how to read and run Python code. The only
thing computers can understand is something called machine code, which
looks even more ridiculous than assembly code as it is the binary
representation of the assembly code (yep, just a bunch of 0s and 1s!). Behind
the scenes, your computer takes any Python code that you provide and
converts it into machine code before it runs, as shown in Figure 1.1.

Figure 1.1 Your Python program goes through several steps before you see the output on your
screen
Copilot, your AI Assistant

What is an AI Assistant? An AI Assistant is an Artificial Intelligence (AI)


agent that helps you get work done. Maybe you have an Amazon Alexa
device at home, or an iPhone with Siri—these are AI assistants. Those ones
help you order groceries, learn the weather, or determine that, yes, the woman
who played Bellatrix in the Harry Potter movies really was in Fight Club. An
AI assistant is just a computer program that responds to normal human inputs
like speech and text with human-like answers.

Copilot is an AI Assistant with a specific job: it converts English into


computer programs. (It can also do a whole lot more as we will soon see.)
There are other AI assistants like Copilot, including CodeWhisperer,
Tabnine, and Ghostwriter. We chose Copilot for this book by a combination
of the quality of code that we have been able to produce, stability (it has
never crashed for us!), and our own personal preferences. We encourage you
to check out other tools as well when you feel comfortable doing so.

How Copilot works behind the scenes—in 30 seconds

You can think of Copilot as a layer between you and the computer program
you’re writing. Instead of writing the Python directly, you simply describe
the program you want in words—this is called a prompt—and Copilot
generates the program for you.

The brains behind Copilot is a fancy computer program called a large


language model, or LLM. An LLM stores information about relationships
between words, including which words make sense in certain contexts, and
uses this to predict the best sequence of words to respond to a prompt.

Imagine that we asked you what the next word should be in this sentence:
"The person opened the ________". There are many words that you could fill
in here, like “door” or “box” or “conversation,” but there are also many
words that would not fit here, like “the” or “it” or “open.” An LLM takes into
account the current context of words to produce the next word, and it keeps
doing this until it has completed the task.

Notice that we didn't say anything about Copilot having an understanding of


what it is doing. It just uses the current context to keep writing code. Keep
this in mind throughout your journey: only we know whether the code that's
generated actually does what we intended it to do. Very often it does, but you
should always exercise healthy skepticism regardless.
Figure 1.2 will give you an idea of how Copilot goes from prompt to
program.

Figure 1.2 Going from prompt to program with Copilot


Exploring the Variety of Random
Documents with Different Content
keinoin siihen valmistettu; sillä onhan kuitenkin oikeudellinen, jos
kohta vähemmässä määrin oikeudenmukainen valtiojärjestys
parempi kuin olematon, jommoinen kohtalo (anarkia) olisi
seurauksena liian kiireellisestä uudistuksesta. — Valtioviisauden on
siis asiain nykyisellään ollen omaksuttava velvollisuudekseen pyrkiä
uudistuksiin, jotka vastaavat julkisen oikeuden ihannetta;
vallankumouksia taas, milloin luonto nostattaa ne itsestään, ei sen
ole käytettävä vielä suuremman sorron kaunistelemiseksi, vaan
niissä on kuultava luonnon kehoitus pyrkiä perinpohjaisilla
uudistuksilla aikaansaamaan vapauden periaatteille rakennettu
laillinen valtiojärjestys, jommoinen on ainoa kestävä. (Tekijän huom.)

[19] Joskin vielä saattaisi epäillä jonkunlaisen ihmisluontoon


juurtuneen, saman valtion piirissä yhdessä elävissä ihmisissä asuvan
häijyyden olemassaoloa ja löytää jossakin määrin todenmukaisuutta
arvelulle, että ihmisten ajatustavassa esiintyvien lainvastaisten
ilmiöiden syynä onkin se, että kulttuuri ei ole vielä kehittynyt kyllin
pitkälle (siis raakuus), niin pistää tuo häijyys silmiin ainakin
valtioiden ulkonaisissa suhteissa toisiinsa peittelemättömän ja
epäämättömän selvästi. Kunkin valtion omassa piirissä verhoaa sitä
yhteisten lakien pakko, kun kansalaisten taipumusta keskinäiseen
väkivaltaisuuteen voimakkaasti ehkäisee toinen, suurempi valta,
nimittäin hallitusmahti, mikä ei ainoastaan anna olosuhteille
kokonaisuudessaan jonkunlaista moraalista silausta (causae non
causae), vaan helpottaa todella myös siveellisen taipumuksen
kehittymistä suoranaiseksi kunnioitukseksi oikeutta kohtaan siten,
että lainvastaisten taipumusten puhkeamisen tielle tulee asetetuksi
sulku.

Jokainenhan luulee näet itsestään, että hän kyllä pitäisi pyhänä ja


seuraisi uskollisesti oikeuden aatetta, jos hän vain voisi odottaa
samaa kaikilta muiltakin, minkä viimeksimainitun seikan hallitus
hänelle osittain takaakin, joten samalla tulee astutuksi pitkä askel
moraalisuutta kohti (vaikkakaan ei vielä moraalinen askel), kohti
uskollisuutta velvollisuusaatteelle sen itsensä tähden, ajattelematta
mahdollista palkintoa. — Mutta kun itsekukin, samalla kun ajattelee
hyvää itsestään, kuitenkin edellyttää kaikissa muissa pahoja
aivoituksia, lausuu jokainen siten molemminpuolisesti arvostelunsa
toisestaan: etteivät he tosioloissa ole juuri kelvollisia yksikään
(jääköön pohtimatta, mistä tämä johtuu; ainakaan ei siitä voi syyttää
ihmisen luontoa, jos kerran ihminen on vapaa olento). Mutta kun
kumminkin jo ihmisen oikeuden aatetta kohtaan tuntema
kunnioituskin, josta hän ei millään muotoa voi riistäytyä irti, on mitä
juhlallisimpana vahvistuksena sille teorialle, jonka mukaan meillä on
kyky sopeutua siihen, niin huomaa jokainen, että hänen omasta
puolestaan pitäisi toimia sen mukaisesti, tehköötpä toiset siinä
suhteessa miten hyvänsä. (Tekijän huom.)

[20] Kantin mielilauselma, suomeksi: Älä väisty onnettomuutta,


vaan astu sitä uskaliaammin sitä vastaan. — Vergilius, Aeneis VI, 95.

[21] Todisteita tuommoisista toiminnanohjeista voi löytää herra


hovineuvos Garven tutkielmasta "Moraalin yhteensoveltamisesta
politiikan kanssa", 1788. Tämä kunnioitettava oppinut tunnustaa heti
alussa, ettei hän voi antaa tuohon kysymykseen tyydyttävää
vastausta. Mutta hyväksyä silti selitys, jos kohta myöntämällä, ettei
voi täysin kumota sitä vastaan nousevia vastaväitteitä, näyttää
kuitenkin niitä kohtaan, jotka ovat hyvin taipuvaisia käyttämään sitä
väärin, suuremmalta myötenantamiselta kuin kenties olisi otollista.
(Tekijän huom.)

[22] 1700-luvun.
[23] "Liian myöhään viisastuvat frygialaiset." (Vanha sananparsi.)
*** END OF THE PROJECT GUTENBERG EBOOK IKUISEEN
RAUHAAN: VALTIO-OIKEUDELLINEN TUTKIELMA ***

Updated editions will replace the previous one—the old editions will
be renamed.

Creating the works from print editions not protected by U.S.


copyright law means that no one owns a United States copyright in
these works, so the Foundation (and you!) can copy and distribute it
in the United States without permission and without paying
copyright royalties. Special rules, set forth in the General Terms of
Use part of this license, apply to copying and distributing Project
Gutenberg™ electronic works to protect the PROJECT GUTENBERG™
concept and trademark. Project Gutenberg is a registered trademark,
and may not be used if you charge for an eBook, except by following
the terms of the trademark license, including paying royalties for use
of the Project Gutenberg trademark. If you do not charge anything
for copies of this eBook, complying with the trademark license is
very easy. You may use this eBook for nearly any purpose such as
creation of derivative works, reports, performances and research.
Project Gutenberg eBooks may be modified and printed and given
away—you may do practically ANYTHING in the United States with
eBooks not protected by U.S. copyright law. Redistribution is subject
to the trademark license, especially commercial redistribution.

START: FULL LICENSE


THE FULL PROJECT GUTENBERG LICENSE
PLEASE READ THIS BEFORE YOU DISTRIBUTE OR USE THIS WORK

To protect the Project Gutenberg™ mission of promoting the free


distribution of electronic works, by using or distributing this work (or
any other work associated in any way with the phrase “Project
Gutenberg”), you agree to comply with all the terms of the Full
Project Gutenberg™ License available with this file or online at
www.gutenberg.org/license.

Section 1. General Terms of Use and


Redistributing Project Gutenberg™
electronic works
1.A. By reading or using any part of this Project Gutenberg™
electronic work, you indicate that you have read, understand, agree
to and accept all the terms of this license and intellectual property
(trademark/copyright) agreement. If you do not agree to abide by all
the terms of this agreement, you must cease using and return or
destroy all copies of Project Gutenberg™ electronic works in your
possession. If you paid a fee for obtaining a copy of or access to a
Project Gutenberg™ electronic work and you do not agree to be
bound by the terms of this agreement, you may obtain a refund
from the person or entity to whom you paid the fee as set forth in
paragraph 1.E.8.

1.B. “Project Gutenberg” is a registered trademark. It may only be


used on or associated in any way with an electronic work by people
who agree to be bound by the terms of this agreement. There are a
few things that you can do with most Project Gutenberg™ electronic
works even without complying with the full terms of this agreement.
See paragraph 1.C below. There are a lot of things you can do with
Project Gutenberg™ electronic works if you follow the terms of this
agreement and help preserve free future access to Project
Gutenberg™ electronic works. See paragraph 1.E below.
1.C. The Project Gutenberg Literary Archive Foundation (“the
Foundation” or PGLAF), owns a compilation copyright in the
collection of Project Gutenberg™ electronic works. Nearly all the
individual works in the collection are in the public domain in the
United States. If an individual work is unprotected by copyright law
in the United States and you are located in the United States, we do
not claim a right to prevent you from copying, distributing,
performing, displaying or creating derivative works based on the
work as long as all references to Project Gutenberg are removed. Of
course, we hope that you will support the Project Gutenberg™
mission of promoting free access to electronic works by freely
sharing Project Gutenberg™ works in compliance with the terms of
this agreement for keeping the Project Gutenberg™ name associated
with the work. You can easily comply with the terms of this
agreement by keeping this work in the same format with its attached
full Project Gutenberg™ License when you share it without charge
with others.

1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside the
United States, check the laws of your country in addition to the
terms of this agreement before downloading, copying, displaying,
performing, distributing or creating derivative works based on this
work or any other Project Gutenberg™ work. The Foundation makes
no representations concerning the copyright status of any work in
any country other than the United States.

1.E. Unless you have removed all references to Project Gutenberg:

1.E.1. The following sentence, with active links to, or other


immediate access to, the full Project Gutenberg™ License must
appear prominently whenever any copy of a Project Gutenberg™
work (any work on which the phrase “Project Gutenberg” appears,
or with which the phrase “Project Gutenberg” is associated) is
accessed, displayed, performed, viewed, copied or distributed:
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.

1.E.2. If an individual Project Gutenberg™ electronic work is derived


from texts not protected by U.S. copyright law (does not contain a
notice indicating that it is posted with permission of the copyright
holder), the work can be copied and distributed to anyone in the
United States without paying any fees or charges. If you are
redistributing or providing access to a work with the phrase “Project
Gutenberg” associated with or appearing on the work, you must
comply either with the requirements of paragraphs 1.E.1 through
1.E.7 or obtain permission for the use of the work and the Project
Gutenberg™ trademark as set forth in paragraphs 1.E.8 or 1.E.9.

1.E.3. If an individual Project Gutenberg™ electronic work is posted


with the permission of the copyright holder, your use and distribution
must comply with both paragraphs 1.E.1 through 1.E.7 and any
additional terms imposed by the copyright holder. Additional terms
will be linked to the Project Gutenberg™ License for all works posted
with the permission of the copyright holder found at the beginning
of this work.

1.E.4. Do not unlink or detach or remove the full Project


Gutenberg™ License terms from this work, or any files containing a
part of this work or any other work associated with Project
Gutenberg™.

1.E.5. Do not copy, display, perform, distribute or redistribute this


electronic work, or any part of this electronic work, without
prominently displaying the sentence set forth in paragraph 1.E.1
with active links or immediate access to the full terms of the Project
Gutenberg™ License.

1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if you
provide access to or distribute copies of a Project Gutenberg™ work
in a format other than “Plain Vanilla ASCII” or other format used in
the official version posted on the official Project Gutenberg™ website
(www.gutenberg.org), you must, at no additional cost, fee or
expense to the user, provide a copy, a means of exporting a copy, or
a means of obtaining a copy upon request, of the work in its original
“Plain Vanilla ASCII” or other form. Any alternate format must
include the full Project Gutenberg™ License as specified in
paragraph 1.E.1.

1.E.7. Do not charge a fee for access to, viewing, displaying,


performing, copying or distributing any Project Gutenberg™ works
unless you comply with paragraph 1.E.8 or 1.E.9.

1.E.8. You may charge a reasonable fee for copies of or providing


access to or distributing Project Gutenberg™ electronic works
provided that:

• You pay a royalty fee of 20% of the gross profits you derive
from the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”

• You provide a full refund of any money paid by a user who


notifies you in writing (or by e-mail) within 30 days of receipt
that s/he does not agree to the terms of the full Project
Gutenberg™ License. You must require such a user to return or
destroy all copies of the works possessed in a physical medium
and discontinue all use of and all access to other copies of
Project Gutenberg™ works.

• You provide, in accordance with paragraph 1.F.3, a full refund of


any money paid for a work or a replacement copy, if a defect in
the electronic work is discovered and reported to you within 90
days of receipt of the work.

• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.

1.E.9. If you wish to charge a fee or distribute a Project Gutenberg™


electronic work or group of works on different terms than are set
forth in this agreement, you must obtain permission in writing from
the Project Gutenberg Literary Archive Foundation, the manager of
the Project Gutenberg™ trademark. Contact the Foundation as set
forth in Section 3 below.

1.F.

1.F.1. Project Gutenberg volunteers and employees expend


considerable effort to identify, do copyright research on, transcribe
and proofread works not protected by U.S. copyright law in creating
the Project Gutenberg™ collection. Despite these efforts, Project
Gutenberg™ electronic works, and the medium on which they may
be stored, may contain “Defects,” such as, but not limited to,
incomplete, inaccurate or corrupt data, transcription errors, a
copyright or other intellectual property infringement, a defective or
damaged disk or other medium, a computer virus, or computer
codes that damage or cannot be read by your equipment.

1.F.2. LIMITED WARRANTY, DISCLAIMER OF DAMAGES - Except for


the “Right of Replacement or Refund” described in paragraph 1.F.3,
the Project Gutenberg Literary Archive Foundation, the owner of the
Project Gutenberg™ trademark, and any other party distributing a
Project Gutenberg™ electronic work under this agreement, disclaim
all liability to you for damages, costs and expenses, including legal
fees. YOU AGREE THAT YOU HAVE NO REMEDIES FOR
NEGLIGENCE, STRICT LIABILITY, BREACH OF WARRANTY OR
BREACH OF CONTRACT EXCEPT THOSE PROVIDED IN PARAGRAPH
1.F.3. YOU AGREE THAT THE FOUNDATION, THE TRADEMARK
OWNER, AND ANY DISTRIBUTOR UNDER THIS AGREEMENT WILL
NOT BE LIABLE TO YOU FOR ACTUAL, DIRECT, INDIRECT,
CONSEQUENTIAL, PUNITIVE OR INCIDENTAL DAMAGES EVEN IF
YOU GIVE NOTICE OF THE POSSIBILITY OF SUCH DAMAGE.

1.F.3. LIMITED RIGHT OF REPLACEMENT OR REFUND - If you


discover a defect in this electronic work within 90 days of receiving
it, you can receive a refund of the money (if any) you paid for it by
sending a written explanation to the person you received the work
from. If you received the work on a physical medium, you must
return the medium with your written explanation. The person or
entity that provided you with the defective work may elect to provide
a replacement copy in lieu of a refund. If you received the work
electronically, the person or entity providing it to you may choose to
give you a second opportunity to receive the work electronically in
lieu of a refund. If the second copy is also defective, you may
demand a refund in writing without further opportunities to fix the
problem.

1.F.4. Except for the limited right of replacement or refund set forth
in paragraph 1.F.3, this work is provided to you ‘AS-IS’, WITH NO
OTHER WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.

1.F.5. Some states do not allow disclaimers of certain implied


warranties or the exclusion or limitation of certain types of damages.
If any disclaimer or limitation set forth in this agreement violates the
law of the state applicable to this agreement, the agreement shall be
interpreted to make the maximum disclaimer or limitation permitted
by the applicable state law. The invalidity or unenforceability of any
provision of this agreement shall not void the remaining provisions.

1.F.6. INDEMNITY - You agree to indemnify and hold the Foundation,


the trademark owner, any agent or employee of the Foundation,
anyone providing copies of Project Gutenberg™ electronic works in
accordance with this agreement, and any volunteers associated with
the production, promotion and distribution of Project Gutenberg™
electronic works, harmless from all liability, costs and expenses,
including legal fees, that arise directly or indirectly from any of the
following which you do or cause to occur: (a) distribution of this or
any Project Gutenberg™ work, (b) alteration, modification, or
additions or deletions to any Project Gutenberg™ work, and (c) any
Defect you cause.

Section 2. Information about the Mission


of Project Gutenberg™
Project Gutenberg™ is synonymous with the free distribution of
electronic works in formats readable by the widest variety of
computers including obsolete, old, middle-aged and new computers.
It exists because of the efforts of hundreds of volunteers and
donations from people in all walks of life.

Volunteers and financial support to provide volunteers with the


assistance they need are critical to reaching Project Gutenberg™’s
goals and ensuring that the Project Gutenberg™ collection will
remain freely available for generations to come. In 2001, the Project
Gutenberg Literary Archive Foundation was created to provide a
secure and permanent future for Project Gutenberg™ and future
generations. To learn more about the Project Gutenberg Literary
Archive Foundation and how your efforts and donations can help,
see Sections 3 and 4 and the Foundation information page at
www.gutenberg.org.

Section 3. Information about the Project


Gutenberg Literary Archive Foundation
The Project Gutenberg Literary Archive Foundation is a non-profit
501(c)(3) educational corporation organized under the laws of the
state of Mississippi and granted tax exempt status by the Internal
Revenue Service. The Foundation’s EIN or federal tax identification
number is 64-6221541. Contributions to the Project Gutenberg
Literary Archive Foundation are tax deductible to the full extent
permitted by U.S. federal laws and your state’s laws.

The Foundation’s business office is located at 809 North 1500 West,


Salt Lake City, UT 84116, (801) 596-1887. Email contact links and up
to date contact information can be found at the Foundation’s website
and official page at www.gutenberg.org/contact

Section 4. Information about Donations to


the Project Gutenberg Literary Archive
Foundation
Project Gutenberg™ depends upon and cannot survive without
widespread public support and donations to carry out its mission of
increasing the number of public domain and licensed works that can
be freely distributed in machine-readable form accessible by the
widest array of equipment including outdated equipment. Many
small donations ($1 to $5,000) are particularly important to
maintaining tax exempt status with the IRS.

The Foundation is committed to complying with the laws regulating


charities and charitable donations in all 50 states of the United
States. Compliance requirements are not uniform and it takes a
considerable effort, much paperwork and many fees to meet and
keep up with these requirements. We do not solicit donations in
locations where we have not received written confirmation of
compliance. To SEND DONATIONS or determine the status of
compliance for any particular state visit www.gutenberg.org/donate.

While we cannot and do not solicit contributions from states where


we have not met the solicitation requirements, we know of no
prohibition against accepting unsolicited donations from donors in
such states who approach us with offers to donate.

International donations are gratefully accepted, but we cannot make


any statements concerning tax treatment of donations received from
outside the United States. U.S. laws alone swamp our small staff.

Please check the Project Gutenberg web pages for current donation
methods and addresses. Donations are accepted in a number of
other ways including checks, online payments and credit card
donations. To donate, please visit: www.gutenberg.org/donate.

Section 5. General Information About


Project Gutenberg™ electronic works
Professor Michael S. Hart was the originator of the Project
Gutenberg™ concept of a library of electronic works that could be
freely shared with anyone. For forty years, he produced and
distributed Project Gutenberg™ eBooks with only a loose network of
volunteer support.
Project Gutenberg™ eBooks are often created from several printed
editions, all of which are confirmed as not protected by copyright in
the U.S. unless a copyright notice is included. Thus, we do not
necessarily keep eBooks in compliance with any particular paper
edition.

Most people start at our website which has the main PG search
facility: www.gutenberg.org.

This website includes information about Project Gutenberg™,


including how to make donations to the Project Gutenberg Literary
Archive Foundation, how to help produce our new eBooks, and how
to subscribe to our email newsletter to hear about new eBooks.

You might also like