Index of Essential Python Programming training course
Section
Section Name
Page
One
Python Introduction
2
- Some of Pythons main uses
4
Two
Running Python scripts
5
- Introduction
6
- Using the Python Shell
7
- Closing the Python Shell
14
- Accessing the Python Shell via DOS
15
- Executing a Python script via DOS
16
- Using Python IDLE
17
- Using Python IDLE (New File)
20
- Using Python IDLE (Open)
21
- Using Python IDLE (Open Module)
22
- Using Python IDLE (Path Browser)
24
- Using Python IDLE (Save As)
25
- Using Python IDLE (Editor)
27
- Python help
29
Three
Python Structure
31
- Basic Structure of Python
32
- Use of print()
33
- print() arguments
35
- Concatenating print()
36
- print() on more than one line
39
- print() with a tab
40
- print() with double and single quotes
41
- Use of print() with calculations
42
- print() and BODMAS
43
- Continuation
45
- Commenting code in Python
47
- Exercise One
48
Four
Defining Python Variables
50
- Introduction
51
- Defining Python Variables
52
- Naming Python Variables
54
- Declaring Python Variables
58
- Flexibility of Datatypes
64
- Casting Datatypes
67
- What is the current Data type ?
70
- Type Annotations
73
- Swapping
74
Five
Manipulating Variables in Python
75
- Introduction
76
- Mathematics
77
- Incrementing Values
82
- Concatenation
85
- Exercise Two
89
Six
Using Python built in String Functions
93
- Introduction
94
- Changing Case of Strings
98
- len()
100
- Search functions
101
- Trim functions
106
- Justifying text
108
- Ascii conversion
110
- Slicing a String (Sub-stringing)
111
- Nesting Functions
115
Seven
Using Python built in Number Functions
116
- Introduction
117
- Number Rounding
118
- Miscellaneous Numeric Functions
122
- Number conversion
124
- Number Formatting
125
- Number Formatting with padding
130
- Number Formatting with sign
131
- Number Formatting with currency sign
133
- Number Formatting with separator
134
- Number Formatting with precision
135
- Number Formatting with percentage
137
- Number Formatting with exponential
138
- Number Formatting using variables
139
- Using format with Strings
140
- Using multiple format masks
147
- Exercise Three
148
Eight
Introduction to Python Arrays
153
- Introduction
154
- List
156
- Appending to a List
158
- Inserting into a List
159
- Removing from a List
160
- Popping a List
162
- Deleting from a List
163
- Clearing a List
165
- Alternative syntax for a List
166
- Extending a List
168
- Repeating a List
170
- Appending a List
171
- Sub-Lists
172
- List and ranges
173
- List length
174
- List indexes
175
- Sorting Lists
176
- Slicing a List
181
- Creating a list from string (split)
183
- Creating a string from a list (join)
184
- Using sum() on a list
185
- Multi-dimensional lists
186
- Tuple
191
- Using partition with Tuple
194
- Using index with Tuple
195
- Converting Tuple to a string
196
- Nested Tuple
197
- Multi-dimensional Tuple
198
- Sets
201
- Adding to a Set
202
- Removing elements from a Set
203
- Removing a Set
207
- Alternative set creation
208
- Dictionaries
209
- Manipulating Dictionaries
215
- Alternative Dictionary creation
219
- Dictionary records
220
- Exercise Four
225
Nine
Conditional Python Statements
230
- If statements
231
- Comparison Operators
237
- Else in Conditions
239
- Multiple 'If' statements
240
- Testing different datatypes
243
- Testing Strings
244
- Testing Booleans
248
- Testing for Nones
250
- Multiple Condition tests (and)
251
- Multiple Condition tests (or)
252
- Multiple Condition tests (not)
253
- Multiple Condition tests (is and is not)
255
- Nested If Conditions
256
- Ternary Operator
257
- Testing strings
261
- Using lists in conditions
270
- Using tuples in conditions
272
- Using sets in conditions
273
- Using isinstance()
274
- Exiting if statements
280
Ten
Python Input
282
- Introduction
283
- input()
284
- Command line parameters
286
- Exercise Five
290
Eleven
Looping through values in Python
296
- Introduction
297
- For looping using range()
298
- For looping using list()
306
- For looping using string
308
- For looping using else
309
- Multidimensional Arrays with for loops
310
- Looping through Dictionaries
311
- while Loops
316
- while Loops with else
318
- Using break to exit Loops
319
- Using continue to control Loops
322
- Using pass and None as dummy processing
323
- Using break to exit nested loops
325
- Using eval() with loops
326
- Using exec() with loops
327
- Exercise Six
328
Twelve
Using Dates within Python
333
- Introduction
334
- Creating String of Dates
335
- Extracting Dates using strfttime()
336
- Extracting elements in a Date
338
- Populating Dates
339
- Populating Dates
341
- Populating datetime
343
- Populating Dates with strptime()
347
- Timestamps
349
- Timestamps from datetime
350
- Manipulating Dates using timedelta
353
- Timedelta total_seconds()
357
- Subtracting dates
358
- Comparing Dates
361
- UTC
365
- Sleep()
368
- Exercise Seven
370
Thirteen
Exceptions and Errors
373
- Introduction
374
- Exception Syntax
376
- Suppressing exceptions with pass
382
- Using assert
383
- Using sys.exc_info()
386
- Re-raising Exceptions
387
- Else
391
- Finally
392
- Raising Exceptions
394
- Exception Syntax
396
Fourteen
Regular Expressions
397
- Introduction
398
- Testing for 'Contains' within a String
399
- Starts or Ends using Line Anchors
402
- Starts and Ends using Line Anchors (or)
404
- Using the Dot (Any Character)
405
- Using {Intervals}
408
- Using Character Lists []
412
- Using Character Lists to exclude matches
415
- Using Escape Sequences
416
- Using the Question Mark (Optional)
418
- Using the Plus sign (Mandatory)
420
- Using the Star sign (Optional)
421
- Using findall()
422
- Using split()
424
- Using sub()
427
- Exercise Eight
429
Fifteen
Python Calendar
435
- Introduction
436
- weekday()
437
- weekday() with datetime
438
- monthrange()
439
- monthcalendar()
440
- itermonthdates()
442
- itermonthdays2()
445
- itermonthdays()
446
- isleap()
448
- leapdays()
449
- month
450
- calendar
454
Sixteen
Python Functions
459
- Introduction
460
- Rudimentary Functions
461
- Passing Parameters to Functions
464
- Passing Multiple Parameters
466
- Passing Lists
467
- Defaulting Parameters in Functions
468
- Returning Values
472
- Returning Values in an Array
476
- The scope of Variables
478
- Global Variables
481
- Dynamic Function Calls
484
- Calling Functions from other Functions
487
- Nested Functions
488
- Nested Functions with nonlocal
490
- Lambda functions
494
- Function Annotations
500
- Outputting Function Annotations
502
- Annotating Arguments
503
- Flexible parameters
506
- Using *args
507
- Using **kwargs
512
- Using *
513
- Using **
514
- Using map()
515
Seventeen
Threading and Timers
519
Eighteen
Python Modules
523
- Introduction
524
- Creating modules
525
- Module reload()
528
- Modules with functions
530
- from … import
533
- Contents of an imported module
535
- Importing modules
538
- sys.modules
540
- Exercise Nine
542
Nineteen
Python and the Operating System
546
- Introduction
547
- Methods
548
Twenty
Concepts of OOPS
553
- Introduction
554
- Classes and Instances (Instantiation)
555
- Constructor
556
- Classes
557
- Classes with Functions
560
- Classes with self
562
- Classes with init
564
- Static methods in Classes
572
- Class methods
576
- Overloading Methods
578
- Overriding Methods
583
- Using Super
587
- Overriding init
588
- Private Methods in Classes
593
- Classes within Classes
596
- Private Classes in Classes
599
Twenty One
Python File I/O
601
- Introduction
602
- Reading files
603
- Using open()
604
- Using read()
607
- Reading lines
609
- readline()
611
- readlines()
613
- close()
616
- Using 'with' with open()
618
- Writing to files
619
- Using write()
621
- Using writelines()
624
- Using 'with' with write() or writelines()
625
- Appending
626
- Reading CSV files
627
- csv.reader
632
- csv.reader and dialect
635
- csv.reader and seek()
636
- csv.reader and Sniffer()
637
- Writing CSV files
639
Twenty Two
Connecting to MySQL
644
Twenty Three
Creating executables
651
- Exercise Ten
521
Twenty Four
Python tkinter
663
- Introduction
664
- Windows
665
- Customising Windows
667
- Exercise Eleven
672
Twenty Five
Display widgets
675
- Labels
676
- packing Labels
677
- Colouring Labels
679
- Labels and fonts
681
- Sizing Labels
682
- anchoring Labels
683
- Label Borders
684
- Label padding
686
- wrapping Labels
687
- Label and font widgets
688
- Justifying Labels
689
- Identifying Labels with IDs
690
- Labels with PhotoImages
692
- PhotoImage resizing
695
- PhotoImage and zoom
698
- Message
699
Twenty Six
Fonts
700
Twenty Seven
Colors
703
- Exercise Twelve
707
Twenty Eight
Buttons
711
- Buttons and command
713
- Sizing and colouring Buttons
715
- Buttons with PhotoImages
718
- Button methods
720
Twenty Nine
Pack
721
- pack with padding
723
- pack with directions
724
- pack with fill
725
- Additional pack methods
729
- Exercise Thirteen
733
Thirty
Message boxes
736
- Dialog boxes
737
- Customising Dialog boxes
743
- simpledialog
745
- colorchooser
751
- filedialog
753
Thirty One
Variable Classes
760
- Introduction
761
- Using trace_add
763
- Using trace_info
766
- Using trace_remove
767
- Using within widgets
768
- Exercise Fourteen
769
Thirty Two
Input Widgets
771
- Introduction
772
- Entry
773
- Populating an Entry
774
- Entry and validate
776
- Entry disabling
778
- Text
779
- Text using insert
781
- Text wrapping
785
- Text using triple quotations
786
- Text using delete
787
- Extracting from Text
795
- ScrolledText
796
- focus_set()
799
Thirty Three
Bind
800
- Introduction
801
- Event types
805
- Protocols
810
Thirty Four
Frames
812
- Introduction
813
- Frame
815
- LabelFrame
817
- PanedWindow
819
- Toplevel
824
- Canvas
829
- Notebook
831
Thirty Five
Geometry Managers for positioning
837
- Introduction
838
- grid()
839
- place()
848
- Mixing Geometry Managers
854
- Exercise Fifteen
855
Thirty Six
Cursors
860
Thirty Seven
Scrollbars
863
- Horizontal and Vertical combined
868
Thirty Eight
GUI widgets
871
- Introduction
872
- Spinbox
873
- Checkbutton
879
- Radiobutton
881
- Radiobutton with indicatoron
888
- Radiobutton with PhotoImage
890
- Radiobutton methods
892
- Listbox
893
- Combobox
898
- Scale
900
- Progressbar
905
- Treeview
908
Thirty Nine
Separator
920
- Exercise Sixteen
923
Forty
Menus
928
- Introduction
929
- Simple Menubar
930
- Menu Options with Images
938
- Popup Menus
940
- Popup Menus with Images
942
- Optionmenu
943
Forty One
ttk
946
- Introduction
947
- Style
949
- Sizegrip
951
- Exercise Seventeen
952