An Introduction to Programming and Computer Science with PythonКНИГИ » ПРОГРАММИНГ
Название: An Introduction to Programming and Computer Science with Python Автор: 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
Уважаемый посетитель, Вы зашли на сайт как незарегистрированный пользователь.
С этой публикацией часто скачивают:
Introduction to Computer Programming with Python Название: Introduction to Computer Programming with Python Автор: Harris Wang Издательство: Remix Год: 2023 Страниц: 500 Язык: английский Формат: pdf...
Python Programming: Using Problem Solving Approach Название: Python Programming: Using Problem Solving Approach Автор: Reema Thareja Издательство: Oxford University Press Год: 2019 Формат: PDF scan...
A Concise Introduction to Programming in Python Название: A Concise Introduction to Programming in Python Автор: Mark J. Johnson Издательство: Chapman and Hall/CRC Год: 2011 Формат: PDF Страниц:...
Python: An Introduction to Programming Название: Python: An Introduction to Programming Автор: J. R. Parker Издательство: Mercury Learning & Information Год: 2016 Страниц: 600 Формат: PDF...
Информация
Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.