Introduction To Python Programming
Introduction To Python Programming
Overview
This Python for beginners training course leads the students from the basics of writing and
running Python scripts to more advanced features such as file operations, working with
binary data, and using the extensive functionality of Python modules. Extra emphasis is
placed on features unique to Python, such as tuples, array slices, and output formatting.
Prerequisites
Students should already be comfortable using the operating system (Linux, Unix, Windows,
Solaris, Mac OS X, etc.) on which they will be running Python. While not mandatory, basic
skills with at least one other programming language are desirable.
Materials
Objectives
Copyright ©2003-2020 Clientoclarify.ai, private limited Company. Some outlines may contain content from our
courseware partners; such content is protected by these partners’ copyrights and License.
Course Schedule
Outline
• An Overview of Python
o What is Python?
o Interpreted languages
o Advantages and disadvantages
o Downloading and installing
o Which version of Python
o Where to find documentation
• The Python Environment
o Structure of a Python script
o Using the interpreter interactively
o Running standalone scripts under Unix and Windows
• Getting Started
o Using variables
o String types: normal, raw and Unicode
o String operators and expressions
o Math operators and expressions
o Writing to the screen
o Command line parameters
o Reading from the keyboard
• Flow Control
o About flow control
o Indenting is significant
o The if and elif statements
o while loops
Copyright ©2003-2020 Clientoclarify.ai, private limited Company. Some outlines may contain content from our
courseware partners; such content is protected by these partners’ copyrights and License.
o Using lists
o Using the for statement
o The range() function
• Data Structure
o list operations
o list methods
o Strings are special kinds of lists
o Tuples
o Dictionary
o Set
o Dictionary overview
o Creating dictionaries
o Dictionary functions
o Fetching keys or values
o Testing for existence of elements
o Deleting elements
o Sets And Frozen Sets
o
• Working with Files
o Text file I/O overview
o Opening a text file
o Reading text files
o Raw (binary) data
o Writing to a text file
• Functions
o Syntax of function definition
o Formal parameters
o Global versus local variables
o Passing parameters and returning values
• Sorting
o The sorted() function
o Alternate keys
o Multiple keys
o Lambda functions
• Errors and Exception Handling
o Dealing with syntax errors
o Exceptions
o Handling exceptions with try/except
o Cleaning up with finally
• Modules and Packages
o What is a module?
o The import statement
o Function aliases
o Packages
• Highlights of the Standard Library
o Working with the operating system
o Grabbing web pages
o Sending email
o math and random
o Accessing dates and times with datetime
o Working with compressed files
• An Introduction to Python Classes
o About o-o programming
Copyright ©2003-2020 Clientoclarify.ai, private limited Company. Some outlines may contain content from our
courseware partners; such content is protected by these partners’ copyrights and License.
o Defining classes
o Constructors
o Instance methods
o Instance data
o Class methods and data
o Destructors
• Conclusion
Copyright ©2003-2020 Clientoclarify.ai, private limited Company. Some outlines may contain content from our
courseware partners; such content is protected by these partners’ copyrights and License.