Programming with Python -  T R Padmanabhan

Programming with Python (eBook)

eBook Download: PDF
2017 | 1. Auflage
XIII, 349 Seiten
Springer Singapore (Verlag)
978-981-10-3277-6 (ISBN)
Systemvoraussetzungen
117,69 inkl. MwSt
  • Download sofort lieferbar
  • Zahlungsarten anzeigen
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. 
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. 

Preface 6
Contents 8
About the Author 12
1 Python–A Calculator 13
Reference 17
2 Algebra with Variables 18
2.1 Variables 18
2.2 Complex Quantities 22
2.3 Common Functions with Numbers 22
2.4 Logical Operators 25
2.5 Strings and Printing 26
2.6 Exercises 27
References 28
3 Simple Programs 29
3.1 Basic Program Structure 29
3.2 Flow Chart 34
3.3 Conditional Operations 36
3.4 Iterative Routines 41
3.5 Exercises 46
References 49
4 Functions and Modules 50
4.1 Functions 50
4.1.1 Lambda Function 54
4.1.2 Recursion 55
4.1.3 Nested Functions 56
4.1.4 Nested Scope 59
4.2 Modules 61
4.2.1 Built-in Modules 71
4.2.2 Math Module 71
4.3 Exercises 73
References 77
5 Sequences and Operations with Sequences 78
5.1 String 78
5.2 Tuple 80
5.3 List 81
5.4 Dictionary 82
5.5 Set 82
5.6 Operators with Sequences 84
5.6.1 All and Any 84
5.6.2 sum and eval 86
5.7 Iterator 87
5.8 Iterator Functions 90
5.9 Generators 95
5.10 Hashing 97
5.11 Input 98
5.12 Exercises 100
References 106
6 Additional Operations with Sequences 107
6.1 Slicing 107
6.2 Reversing 111
6.3 Sorting 112
6.4 Operations with Sequences 116
6.4.1 Max() and Min() Functions 117
6.4.2 Additional Operations with Sequences 120
6.5 Operations with Sets 123
6.6 Frozensets 130
6.7 Tests and Comparisons with Sets and Frozensets 131
6.8 Operations with Dictionaries 132
6.9 *Arg and **Kwarg 137
6.10 Exercises 141
References 144
7 Operations for Text Processing 145
7.1 Unicode 145
7.2 Coding 146
7.2.1 UTF-8 146
7.3 Operations with string S 149
7.4 Number Representations and Conversions 152
7.4.1 Integers 153
7.4.2 Floating Point Numbers 154
7.5 More String Operations 157
7.6 bytes and bytearrays 165
7.7 Other Operations with Sequences 174
7.8 string Module 174
7.9 Exercises 175
References 182
8 Operations with Files 183
8.1 Printing 183
8.2 String Formatting 186
8.2.1 Formatting—Version I 187
8.2.2 Formatting—Version II 190
8.3 Files and Related Operations 196
8.3.1 String/Text Files 196
8.4 Exercises 203
Reference 205
9 Application Modules 206
9.1 random Module 206
9.1.1 Distribution Functions 210
9.2 statistics Module 212
9.3 Array Module 214
9.4 bisect Module 221
9.5 heapq Module 223
9.6 Exercises 229
References 236
10 Classes and Objects 237
10.1 Objects 238
10.2 Classes 238
10.2.1 Instantiation 241
10.3 Functions with Attributes 245
10.4 pass : Place Holder 247
10.5 Overloading 248
10.5.1 Overloading in Basic Python 252
10.6 Inheritance 253
10.6.1 Multiple Inheritances 255
10.7 super() 258
10.8 Execution from Command Line 265
10.9 Exercises 268
Reference 270
11 Time Related Operations 271
11.1 Time Standards 271
11.2 time Module 273
11.3 datetime Module 280
11.3.1 time Objects 282
11.3.2 datetime Objects 283
11.3.3 Time Intervals 286
11.3.4 tzinfo 288
11.3.5 Algebra with Time Objects 291
11.4 Calendars 293
11.5 timeit Module 301
11.6 Exercises 305
References 306
12 Functional Programming Aids 307
12.1 operator Module 307
12.1.1 Generic Methods 311
12.1.2 Inplace Operators 313
12.2 itertools 314
12.2.1 Filtering 322
12.3 generator Using yield 326
12.4 iterator Formation 331
12.5 decoratorS 333
12.6 functools 335
12.6.1 total_ordering 335
12.6.2 single dispatch Generic Function 336
12.6.3 partial Objects 338
12.6.4 Reduction Functions 339
12.7 Exercises 339
References 343
Index 344

Erscheint lt. Verlag 13.1.2017
Zusatzinfo XIII, 344 p. 207 illus.
Verlagsort Singapore
Sprache englisch
Themenwelt Mathematik / Informatik Informatik Software Entwicklung
Informatik Theorie / Studium Algorithmen
Mathematik / Informatik Informatik Web / Internet
Schlagworte Big data analysis • Object Oriented Programming • programming paradigms • Python • Scientific Computing
ISBN-10 981-10-3277-7 / 9811032777
ISBN-13 978-981-10-3277-6 / 9789811032776
Haben Sie eine Frage zum Produkt?
Wie bewerten Sie den Artikel?
Bitte geben Sie Ihre Bewertung ein:
Bitte geben Sie Daten ein:
PDFPDF (Wasserzeichen)
Größe: 11,2 MB

DRM: Digitales Wasserzeichen
Dieses eBook enthält ein digitales Wasser­zeichen und ist damit für Sie persona­lisiert. Bei einer missbräuch­lichen Weiter­gabe des eBooks an Dritte ist eine Rück­ver­folgung an die Quelle möglich.

Dateiformat: PDF (Portable Document Format)
Mit einem festen Seiten­layout eignet sich die PDF besonders für Fach­bücher mit Spalten, Tabellen und Abbild­ungen. Eine PDF kann auf fast allen Geräten ange­zeigt werden, ist aber für kleine Displays (Smart­phone, eReader) nur einge­schränkt geeignet.

Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür einen PDF-Viewer - z.B. den Adobe Reader oder Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür einen PDF-Viewer - z.B. die kostenlose Adobe Digital Editions-App.

Zusätzliches Feature: Online Lesen
Dieses eBook können Sie zusätzlich zum Download auch online im Webbrowser lesen.

Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.

Mehr entdecken
aus dem Bereich
Learn asynchronous programming by building working examples of …

von Carl Fredrik Samson

eBook Download (2024)
Packt Publishing Limited (Verlag)
28,79