Muutke küpsiste eelistusi

E-raamat: Quick Python 3 [Taylor & Francis e-raamat]

  • Formaat: 113 pages, 1 Line drawings, black and white; 1 Illustrations, black and white
  • Sari: Quick Programming
  • Ilmumisaeg: 03-Feb-2023
  • Kirjastus: Chapman & Hall/CRC
  • ISBN-13: 9781003356219
  • Taylor & Francis e-raamat
  • Hind: 124,64 €*
  • * hind, mis tagab piiramatu üheaegsete kasutajate arvuga ligipääsu piiramatuks ajaks
  • Tavahind: 178,05 €
  • Säästad 30%
  • Formaat: 113 pages, 1 Line drawings, black and white; 1 Illustrations, black and white
  • Sari: Quick Programming
  • Ilmumisaeg: 03-Feb-2023
  • Kirjastus: Chapman & Hall/CRC
  • ISBN-13: 9781003356219
This handy, concise guide cuts to the core of what you need to know to enable you to pick up Python 3, quickly and easily. Like any mainstream language, Python has loops, if statements, assignment statements, functions, etc. This book shows you what these look like in Python 3 without getting bogged down on applications. It also explores Python 3’s less familiar with iterators, like list comprehensions and dictionaries. It covers a selection of library functions which are immediately useful, and provides further information on where to find more. Whether you're looking for a crash course in Python 3 for career progression or for a university project, this book will enable you to quickly add Python 3 to your programming toolkit.

This handy, concise guide cuts to the core of what you need to know to enable you to pick up Python 3, quickly and easily.This book shows you what the latter look like in Python 3 without getting bogged down on applications. It also explores Python 3’s less familiar with iterators, like list comprehensions and dictionaries
Author xi
Preface xiii
Chapter 1 The Absolute Bare Minimum
1(18)
1.1 Python and IDEs
1(1)
1.2 IDLE
2(1)
1.3 Variables
3(1)
1.4 Important Data Types
3(1)
1.5 Basic Arithmetic
4(2)
1.6 Comparisons
6(1)
1.7 Booleans
6(1)
1.8 Lists
7(1)
1.9 Strings
8(1)
1.10 Comments
9(1)
1.11 Statement Types
9(5)
1.11.1 Assignment Statements
10(1)
1.11.2 Print "Statements"
10(1)
1.11.3 If Statements
11(1)
1.11.4 While Loops
11(1)
1.11.5 For Loops
12(1)
1.11.6 Import Statements
13(1)
1.12 Input from the User
14(1)
1.13 Functions
14(1)
1.14 Syntax
15(1)
1.15 Order of Execution
16(1)
1.16 Summary
16(1)
1.17 Wait, That's It?
17(2)
Chapter 2 Better Tools
19(20)
2.1 Object Notation
19(1)
2.2 Lists
20(2)
2.3 Tuples
22(1)
2.4 Sets
23(2)
2.5 Dictionaries
25(2)
2.6 String Methods
27(1)
2.7 Loops for Objects
28(2)
2.7.1 Looping over Lists
28(1)
2.7.2 Looping over Sets
29(1)
2.7.3 Looping over Dictionaries
29(1)
2.8 Handing Exceptions
30(3)
2.9 Type Conversions
33(1)
2.10 Scope
34(2)
2.11 File I/O
36(2)
2.12 Pickling
38(1)
Chapter 3 Classes
39(14)
3.1 Classes and Inheritance
39(2)
3.2 Constructors and Self
41(3)
3.3 Subclasses
44(1)
3.4 Printing Objects
45(2)
3.5 Comparing Objects
47(1)
3.6 Bindings
48(2)
3.7 Shallow and Deep Copies
50(3)
Chapter 4 Getting Fancy
53(20)
4.1 Statements
53(3)
4.2 Identifiers
56(1)
4.3 Type Hints
57(1)
4.4 Numbers
58(1)
4.5 Strings
59(1)
4.6 F-strings
60(1)
4.7 Bit Operations
61(1)
4.8 List Comprehensions
62(1)
4.9 Iterators
63(3)
4.10 Generators
66(2)
4.11 Parameters and Arguments
68(1)
4.12 Functional Programming
69(4)
Chapter 5 Testing
73(10)
5.1 Philosophy
74(1)
5.2 Doctest
75(2)
5.3 Unit Testing
77(3)
5.4 Unit Test Example
80(1)
5.5 Test Suites
81(2)
Chapter 6 Graphical User Interfaces
83(8)
6.1 Dialogs
83(1)
6.2 Tkinter
84(1)
6.3 Creating Widgets
85(2)
6.4 Putting Widgets Into the GUI
87(2)
6.5 Tkinter Example
89(2)
Afterword 91(2)
Appendix A String Methods 93(4)
Appendix B Numerical Functions 97(4)
Appendix C Statistics 101(2)
Appendix D Functions on Iterables 103(2)
Appendix E Operating System Commands 105(2)
Appendix F Unit Test Methods 107(2)
Index 109
David L. Matuszek was Director of the Master's in Computer and Information Technology course at the University of Pennsylvania, USA (2001-2017). With 40 years' teaching experience, and 45 years' programming experience, David is skilled in both the design of innovative software systems and in teaching others how to master programming languages in an accessible and engaging way.