Hands-on Python Tutorial - Loyola University Chicago
Hands-on Python Tutorial
Release 2.0
Dr. Andrew N. Harrington
May 25, 2020
CONTENTS
1
2
3
4
5
Beginning With Python
1.1 Context . . . . . . . . . . . . . . . . . . . . . .
1.2 The Python Interpreter and Idle, Part I . . . . . .
1.3 Whirlwind Introduction To Types and Functions
1.4 Integer Arithmetic . . . . . . . . . . . . . . . .
1.5 Strings, Part I . . . . . . . . . . . . . . . . . . .
1.6 Variables and Assignment . . . . . . . . . . . .
1.7 Print Function, Part I . . . . . . . . . . . . . . .
1.8 Strings Part II . . . . . . . . . . . . . . . . . . .
1.9 The Idle Editor and Execution . . . . . . . . . .
1.10 Input and Output . . . . . . . . . . . . . . . . .
1.11 Defining Functions of your Own . . . . . . . . .
1.12 Dictionaries . . . . . . . . . . . . . . . . . . . .
1.13 Loops and Sequences . . . . . . . . . . . . . .
1.14 Decimals, Floats, and Floating Point Arithmetic
1.15 Summary . . . . . . . . . . . . . . . . . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Objects and Methods
2.1 Strings, Part III . . . . . . .
2.2 More Classes and Methods .
2.3 Mad Libs Revisited . . . . .
2.4 Graphics . . . . . . . . . .
2.5 Files . . . . . . . . . . . .
2.6 Summary . . . . . . . . . .
3
3
7
13
14
17
18
21
21
22
25
30
42
47
61
64
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
73
. 73
. 80
. 82
. 88
. 114
. 117
More On Flow of Control
3.1 If Statements . . . . . . . . . . . .
3.2 Loops and Tuples . . . . . . . . . .
3.3 While Statements . . . . . . . . . .
3.4 Arbitrary Types Treated As Boolean
3.5 Further Topics to Consider . . . . .
3.6 Summary . . . . . . . . . . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
121
121
138
143
158
160
161
Dynamic Web Pages
4.1 Overview . . . . . . . . . . . . .
4.2 Web page Basics . . . . . . . . .
4.3 Composing Web Pages in Python
4.4 CGI - Dynamic Web Pages . . . .
4.5 Summary . . . . . . . . . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
165
165
166
168
172
183
Appendices
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
187
i
5.1
5.2
5.3
5.4
ii
Using Error Messages . . . . . . .
Some Special Windows Instructions
Some Special Mac Instructions . .
HTML Source Markup . . . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
187
193
194
197
Hands-on Python Tutorial, Release 2.0
Dr. Andrew N. Harrington
Computer Science Department, Loyola University Chicago
? Released under the Creative Commons Attribution-Noncommercial-Share Alike 4.0 United States License
¡ª¡ª¡ª¡ª¡ª
CONTENTS
1
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- about the tutorial
- python and sql server
- searching for pulsars with presto
- python for dummies
- web framework for python django book pdf version
- data science from scratch east china normal university
- amazon web services tutorial rxjs ggplot2 python data
- introduction to python harvard university
- a beginner s guide to high performance computing
- hands on python tutorial loyola university chicago
Related searches
- loyola university chicago calendar 2019
- academic calendar loyola university chicago
- loyola university chicago calendar 2020
- loyola university chicago academic schedule
- loyola university chicago school calendar
- loyola university law school chicago
- loyola university calendar 2020
- loyola university chicago academic calendar
- loyola university law school
- loyola university chicago law school
- loyola university law chicago
- loyola university law school ranking