An Introduction to Programming and Computer Science with Python
- Добавил: literator
- Дата: 13-12-2023, 16:29
- Комментариев: 0
![](/uploads/posts/2023-12/thumbs/1702474196_an-introduction-to-programming-and-computer-science-with-python.jpg)
Автор: Clayton Cafiero
Издательство: The University of Vermont
Год: 2023
Страниц: 402
Язык: английский
Формат: pdf
Размер: 10,1 MB
The goal of this book is to provide an introduction to computer programming with Python. This includes
functional decomposition and a structured approach to programming,
writing idiomatic Python,
understanding the importance of abstraction,
practical problem-solving exercises, and
a brief introduction to plotting with Matplotlib.
When you get to know it, Python is a peculiar programming language. Much of what’s peculiar about Python is concealed by its seemingly simple syntax. This is part of what makes Python a great first language—and it’s fun!
The book is organized into chapters which roughly correspond to a week’s worth of material (with some deviations). Some chapters, particularly the first few, should be consumed at a rate of two a week. We present below a brief description of each chapter, followed by mention of some conventions used in the book.
The Chapter 2 provides some motivation for why programming languages are useful, and gives a general outline of how a program is executed by the Python interpreter. This chapter also introduces the two modes of using Python. The interactive mode allows the user to interact with the Python interpreter using the Python shell. Python statements and expressions are entered one at a time, and the interpreter evaluates or executes the code entered by the user. This is an essential tool for experimentation and learning the details of various language features. Script mode allows the user to write, save, and execute Python programs. This is convenient since in this mode we can save our work, and run it multiple times without having to type it again and again at the Python shell.
Functions are the single most important concept a beginning programmer can acquire. Functional decomposition is a crucial requirement of writing reliable, robust, correct code. This chapter explains why we use functions, how functions are defined, how functions are called, and how values are returned. We’ve tried to keep this “non-technical” and so there’s no discussion of a call stack, though there is discussion of scope. Because beginning programmers often introduce side effects into functions where they are undesirable or unnecessary, this chapter makes clear the distinction between pure functions (those without side effects) and impure functions (those with side effects, including mutating mutable objects).
Скачать An Introduction to Programming and Computer Science with Python
![](/templates/LitmyL/images/LitMyru.png)
[related-news] [/related-news]
Внимание
Уважаемый посетитель, Вы зашли на сайт как незарегистрированный пользователь.
Мы рекомендуем Вам зарегистрироваться либо войти на сайт под своим именем.
Уважаемый посетитель, Вы зашли на сайт как незарегистрированный пользователь.
Мы рекомендуем Вам зарегистрироваться либо войти на сайт под своим именем.