Page 4 - Programming With Python 3
P. 4
An Introduction to STEM Programming with Python — 2019-09-03a Page iv
Pop..................................................................................................................................................54
Remove...........................................................................................................................................55
Reverse...........................................................................................................................................55
Free
Sort..................................................................................................................................................56
The Dictionary.....................................................................................................................................57
Selected Methods of Dictionaries........................................................................................................58
Get..................................................................................................................................................58
Keys................................................................................................................................................58
Values..............................................................................................................................................59
eBook
Summary.............................................................................................................................................60
Important Terms..............................................................................................................................60
Exercises..............................................................................................................................................60
Word Search....................................................................................................................................61
References...........................................................................................................................................61
Chapter 5 — For (Looping).....................................................................................................................62
Edition
Introduction.........................................................................................................................................62
Objectives.......................................................................................................................................62
Prerequisites....................................................................................................................................62
For with Lists and Tuples....................................................................................................................62
For with Range....................................................................................................................................65
Range with length...........................................................................................................................65
Please support this work at
Range with start and stop................................................................................................................66
Range with start, stop, and step......................................................................................................66
For loops with Dictionaries.................................................................................................................67
http://syw2l.org
Summary.............................................................................................................................................67
Important Terms..............................................................................................................................67
Exercises..............................................................................................................................................67
Free
Word Search....................................................................................................................................68
References...........................................................................................................................................69
Chapter 6 — Boolean...............................................................................................................................70
Introduction.........................................................................................................................................70
Objectives.......................................................................................................................................70
Prerequisites....................................................................................................................................70
Boolean Values....................................................................................................................................70
eBook
The Three Boolean Operations............................................................................................................71
Boolean addition: OR +..................................................................................................................71
Boolean Multiplication: AND *......................................................................................................71
Compliment: NOT '........................................................................................................................72
Order of Operations........................................................................................................................72
The Five Postulates.............................................................................................................................72
Edition
True and False Values in Python.........................................................................................................73
Boolean Operations in Python.............................................................................................................74
Truth Tables.........................................................................................................................................75
Comparing Two Values in Python.......................................................................................................77
Copyright 2019 — James M. Reneau Ph.D. — http://www.syw2l.org — This work is licensed
under a Creative Commons Attribution-ShareAlike 4.0 International License.

