E-Book, Englisch, 349 Seiten
Padmanabhan Programming with Python
1. Auflage 2016
ISBN: 978-981-10-3277-6
Verlag: Springer Nature Singapore
Format: PDF
Kopierschutz: 1 - PDF Watermark
E-Book, Englisch, 349 Seiten
ISBN: 978-981-10-3277-6
Verlag: Springer Nature Singapore
Format: PDF
Kopierschutz: 1 - PDF Watermark
Based on the latest version of the language, this book offers a self-contained, concise and coherent introduction to programming with Python. The book's primary focus is on realistic case study applications of Python. Each practical example is accompanied by a brief explanation of the problem-terminology and concepts, followed by necessary program development in Python using its constructs, and simulated testing. Given the open and participatory nature of development, Python has a variety of incorporated data structures, which has made it difficult to present it in a coherent manner. Further, some advanced concepts (super, yield, generator, decorator, etc.) are not easy to explain. The book specially addresses these challenges; starting with a minimal subset of the core, it offers users a step-by-step guide to achieving proficiency.
Dr. T. R. Padmanabhan was formerly Professor Emeritus at Amrita Vishwa Vidyapeetham, Coimbatore. He taught at the IIT Kharagpur, before doing R & D for private companies for several years. He is a Senior Member of the IEEE and a Fellow of both the Institution of Engineers (IEI) and the Institution of Electronics and Telecommunication Engineers (IETE). He has previously published books with Wiley, Tata McGraw-Hill, and Springer Verlag.
Autoren/Hrsg.
Weitere Infos & Material
1;Preface;6
2;Contents;8
3;About the Author;12
4;1 Python–A Calculator;13
4.1;Reference;17
5;2 Algebra with Variables;18
5.1;2.1 Variables;18
5.2;2.2 Complex Quantities;22
5.3;2.3 Common Functions with Numbers;22
5.4;2.4 Logical Operators;25
5.5;2.5 Strings and Printing;26
5.6;2.6 Exercises;27
5.7;References;28
6;3 Simple Programs;29
6.1;3.1 Basic Program Structure;29
6.2;3.2 Flow Chart;34
6.3;3.3 Conditional Operations;36
6.4;3.4 Iterative Routines;41
6.5;3.5 Exercises;46
6.6;References;49
7;4 Functions and Modules;50
7.1;4.1 Functions;50
7.1.1;4.1.1 Lambda Function;54
7.1.2;4.1.2 Recursion;55
7.1.3;4.1.3 Nested Functions;56
7.1.4;4.1.4 Nested Scope;59
7.2;4.2 Modules;61
7.2.1;4.2.1 Built-in Modules;71
7.2.2;4.2.2 Math Module;71
7.3;4.3 Exercises;73
7.4;References;77
8;5 Sequences and Operations with Sequences;78
8.1;5.1 String;78
8.2;5.2 Tuple;80
8.3;5.3 List;81
8.4;5.4 Dictionary;82
8.5;5.5 Set;82
8.6;5.6 Operators with Sequences;84
8.6.1;5.6.1 All and Any;84
8.6.2;5.6.2 sum and eval;86
8.7;5.7 Iterator;87
8.8;5.8 Iterator Functions;90
8.9;5.9 Generators;95
8.10;5.10 Hashing;97
8.11;5.11 Input;98
8.12;5.12 Exercises;100
8.13;References;106
9;6 Additional Operations with Sequences;107
9.1;6.1 Slicing;107
9.2;6.2 Reversing;111
9.3;6.3 Sorting;112
9.4;6.4 Operations with Sequences;116
9.4.1;6.4.1 Max() and Min() Functions;117
9.4.2;6.4.2 Additional Operations with Sequences;120
9.5;6.5 Operations with Sets;123
9.6;6.6 Frozensets;130
9.7;6.7 Tests and Comparisons with Sets and Frozensets;131
9.8;6.8 Operations with Dictionaries;132
9.9;6.9 *Arg and **Kwarg;137
9.10;6.10 Exercises;141
9.11;References;144
10;7 Operations for Text Processing;145
10.1;7.1 Unicode;145
10.2;7.2 Coding;146
10.2.1;7.2.1 UTF-8;146
10.3;7.3 Operations with string S;149
10.4;7.4 Number Representations and Conversions;152
10.4.1;7.4.1 Integers;153
10.4.2;7.4.2 Floating Point Numbers;154
10.5;7.5 More String Operations;157
10.6;7.6 bytes and bytearrays;165
10.7;7.7 Other Operations with Sequences;174
10.8;7.8 string Module;174
10.9;7.9 Exercises;175
10.10;References;182
11;8 Operations with Files;183
11.1;8.1 Printing;183
11.2;8.2 String Formatting;186
11.2.1;8.2.1 Formatting—Version I;187
11.2.2;8.2.2 Formatting—Version II;190
11.3;8.3 Files and Related Operations;196
11.3.1;8.3.1 String/Text Files;196
11.4;8.4 Exercises;203
11.5;Reference;205
12;9 Application Modules;206
12.1;9.1 random Module;206
12.1.1;9.1.1 Distribution Functions;210
12.2;9.2 statistics Module;212
12.3;9.3 Array Module;214
12.4;9.4 bisect Module;221
12.5;9.5 heapq Module;223
12.6;9.6 Exercises;229
12.7;References;236
13;10 Classes and Objects;237
13.1;10.1 Objects;238
13.2;10.2 Classes;238
13.2.1;10.2.1 Instantiation;241
13.3;10.3 Functions with Attributes;245
13.4;10.4 pass : Place Holder;247
13.5;10.5 Overloading;248
13.5.1;10.5.1 Overloading in Basic Python;252
13.6;10.6 Inheritance;253
13.6.1;10.6.1 Multiple Inheritances;255
13.7;10.7 super();258
13.8;10.8 Execution from Command Line;265
13.9;10.9 Exercises;268
13.10;Reference;270
14;11 Time Related Operations;271
14.1;11.1 Time Standards;271
14.2;11.2 time Module;273
14.3;11.3 datetime Module;280
14.3.1;11.3.1 time Objects;282
14.3.2;11.3.2 datetime Objects;283
14.3.3;11.3.3 Time Intervals;286
14.3.4;11.3.4 tzinfo;288
14.3.5;11.3.5 Algebra with Time Objects;291
14.4;11.4 Calendars;293
14.5;11.5 timeit Module;301
14.6;11.6 Exercises;305
14.7;References;306
15;12 Functional Programming Aids;307
15.1;12.1 operator Module;307
15.1.1;12.1.1 Generic Methods;311
15.1.2;12.1.2 Inplace Operators;313
15.2;12.2 itertools;314
15.2.1;12.2.1 Filtering;322
15.3;12.3 generator Using yield;326
15.4;12.4 iterator Formation;331
15.5;12.5 decoratorS;333
15.6;12.6 functools;335
15.6.1;12.6.1 total_ordering;335
15.6.2;12.6.2 single dispatch Generic Function;336
15.6.3;12.6.3 partial Objects;338
15.6.4;12.6.4 Reduction Functions;339
15.7;12.7 Exercises;339
15.8;References;343
16;Index;344




