Python Programming Essentials
What You'll Learn:
Throughout the course students will be led through a series of progressively advanced topics, where each topic consists of lecture, group discussion, comprehensive hands-on lab exercises, and lab review. This course is “skills-centric”, designed to train attendees in essential Python and web development skills, coupling the most current, effective techniques with the soundest coding practices.
In Python Programming Essentials, students will Explore:
• Running Python Scripts
• Getting Started
• Flow Control
• Sequence Data
• Defining Functions
• Working with Files
• Dictionaries and Sets
• Errors and Exception Handling
• Using Modules
• Regular Expressions
• Highlights of the Standard Library
• Introduction to Python Classes
Working within in an engaging, hands-on learning environment, guided by our expert Python practitioner, students will learn to:
• Create working Python scripts following best practices
• Use python data types appropriately
• Read and write files with both text and binary data
• Search and replace text with regular expressions
• Get familiar with the standard library and its work-saving modules
• Know when to use collections such as lists, dictionaries, and sets
• Understand Pythonic features such as comprehensions and iterators
• Write robust code using exception handling
Who Should Attend:
This course is appropriate for experienced Python programmers. Students should be able to write simple Python scripts, using basic data types, program structures and the standard Python library.
Pre-Requisites & Learning Path
We will collaborate with you to design the best solution to ensure your needs are met, whether we customize the material, or devise a different educational path to help your team best prepare for this training. Please contact us for recommended next steps tailored to your longer term education, project, role or web development objectives.
Take Before: Students should already have a working, user-level knowledge of Unix/Linux, Mac, or Windows. While not required, basic skills with at least one other programming language will be helpful.
Outline
Session 1-- An Overview of Python
• What is python?
• Python Timeline
• Advantages/Disadvantages of Python
• Getting help with pydoc
Session 2 -- The Python Environment
• Starting Python
• Using the interpreter
• Running a Python script
• Python scripts on Unix/Windows
• Editors and IDEs
Session 3 -- Getting Started
• Using variables
• Builtin functions
• Strings
• Numbers
• Converting among types
• Writing to the screen
• Command line parameters
Session 4 -- Flow Control
• About flow control
• White space
• Conditional expressions
• Relational and Boolean operators
• While loops
• Alternate loop exits
Session 5 -- Sequences
• About sequences
• Lists and list methods
• Tuples
• Indexing and slicing
• Iterating through a sequence
• Sequence functions, keywords, and operators
• List comprehensions
• Nested sequences
Session 6 -- Working with files
• File overview
• Opening a text file
• Reading a text file
• Writing to a text file
• Raw (binary) data
Session 7 -- Dictionaries and Sets
• About dictionaries
• Creating dictionaries
• Iterating through a dictionary
• About sets
• Creating sets
• Working with sets
Session 8 -- Functions
• About sequences
• Function parameters
• Global variables
• Global scope
• Returning values
• Creating a library of functions
Session 9 -- Sorting
• The sorted() function
• Alternate keys
• Lambda functions
• Sorting collections
• Using operator.itemgetter()
• Reverse sorting
Session 10 -- Errors and Exception Handling
• Syntax errors
• Exceptions
• Using try/catch/else/finally
• Handling multiple exceptions
• Ignoring exceptions
Session 11 -- Using Modules
• The import statement
• Module search path
• Zipped libraries
• Creating Modules
• Function and Module aliases
Session 12 -- Regular Expressions
• RE syntax overview
• Basic patterns
• RE Objects
• Searching and matching
• Compilation flags
• Grouping
• Replacing text
• Splitting a string
Session 13 -- Using the Standard Library
• The sys module
• Launching external programs
• Walking directory trees
• Grabbing web pages
• Sending e-mail
• Paths, directories, and filenames
• Math functions
• Random numbers
• Dates and times
• Zipped archives
Session 14 -- An Introduction to Python classes
• About o-o programming
• Defining classes
• Constructors
• Instance methods and data
• Class/static methods and data
Sorry! It looks like we haven’t updated our dates for the class you selected yet. There’s a quick way to find out. Contact us at 502.265.3057 or email info@training4it.com
Request a Date