Course description
Python is an object oriented rapid development language deployed in many scenarios in the modern world.
This Python Programming 1 course is designed to give delegates the knowledge to develop and maintain Python scripts using the current version (V3) of Python.
There are many similarities between Python V2 and Python V3. The skills gained on this course will allow the delegate to develop their own skills further using Python V2 or V3 to support the development and maintenance of scripts.
The Python Programming 1 course comprises sessions dealing with syntax, variables and data types, operators and expressions, conditions and loops, functions, objects, collections, modules and packages, strings, pattern matching, exception handling, binary and text files, and databases.
Exercises and examples are used throughout the course to give practical hands-on experience with the techniques covered.
Who will the Course Benefit?The Python Programming 1 course is aimed at those who want to improve their Python programming skills, and for developers/engineers who want to migrate to Python from another language, particularly those with little or no object-oriented knowledge. For those wishing to learn Python and have no previous knowledge of programming, they should look to attend our foundation course Introduction to Programming - Python.
Course ObjectivesThis course aims to provide the delegate with the knowledge to be able to produce Python scripts and applications that exploit all core elements of the language including variables, expressions, selection and iteration, functions, objects, collections, strings, modules, pattern matching, exception handling, I/O, and classes.
Upcoming start dates
Suitability - Who should attend?
Delegates attending this course should have some previous programming experience and be able to define general programming concepts including: compilation, execution, variables, arrays, sequence, selection, iteration, functions, objects, and classes. Moreover delegates should be able to navigate the filesystem (on the command line ideally), edit and save text files and browse the web. This knowledge can be obtained by attendance on the pre-requisite Introduction to Programming - Python course.
Experience to the level as demonstrated in this course is recommended:
- Introduction to Programming - Python
Training Course Content
Python Programming 1 Training Course
Course Contents - DAY 1
Course Introduction- Administration and Course Materials
- Course Structure and Agenda
- Delegate and Trainer Introductions
- About Python
- Python versions
- Python documentation
- Python runtimes
- Installing Python
- The REPL shell
- Python editors
- Script naming
- Comments
- Docstring
- Statements
- The backslash
- Code blocks
- Whitespace
- Console IO (to enable the writing of simple programs)
- A first Python program
- Script execution
- Literals
- Identifiers
- Assignment
- Numbers (bool, int, float, complex)
- Binary, octal, and hexadecimal numbers
- Floating point accuracy
- Collections (str, list, tuple, set, dict)
- None
- Implicit and explicit type conversion (casting)
- The type function
- Arithmetic Operators
- Assignment Operators
- Comparison Operators
- Logical Operators
- Membership Operators
- Bitwise Operators
- Identity Operators
- Conditional statements (if, elif, else)
- Nested conditional statements
- Short hand if/if else
- Python's alternative to the ternary operator
- Iterative statements (while, for, else)
- The range function
- Iterating over a list
- Break
- Continue
- Nested conditional/iterative statements
Course Contents - DAY 2
Session 6: FUNCTIONS- Declaration
- Invocation
- Default values for parameters
- Named arguments
- args and kwargs
- Returning multiple values
- None returned
- Variable scope
- Masking and shadowing
- The pass keyword
- Recursive functions
- About objects
- Attributes and the dot notation
- The dir function
- Dunder attributes
- Mutability
- The id function
- Pass by reference
- Introduction to Classes
- Class Declaration and Instantiation
- Data attributes
- Methods
- Composition
- About lists
- List syntax including slicing
- Getting and setting list elements
- Iterating over a list
- Checking for the presence of a value
- The len function
- List methods incl. append, insert, remove, pop, clear, copy, sort, reverse etc.
- The del keyword
- Appending to and combining lists
- List comprehension
- About tuples
- Tuple syntax
- Getting tuple elements including unpacking
- Iterating over a tuple
- Checking for the presence of a value
- The len function
- Appending to and combining tuples
- About Sets
- Dictionary syntax
- Creating, adding and removing set elements
- Iterating over a set
- Membership Testing
- Sorting
- Copying
- Set methods incl. union, intersection, difference, symmetric_difference etc.
Course Contents - DAY 3
Session 11: DICTIONARIES- About dictionaries
- Dictionary syntax
- Getting and setting dictionary elements
- Iterating over a dictionary (keys, values, and items)
- Checking for the presence of a key
- The len function
- Dictionary methods incl. keys, values, items, get, pop, popitem, clear etc.
- The del keyword
- Dictionary comprehension
- About strings
- String syntax including slicing
- Escape characters
- Triple-quoted strings
- Concatenation
- Placeholders
- The format method
- Other methods e.g. endswith, find, join, lower, replace, split, startswith, strip, upper etc.
- A string as a list of bytes
- About modules
- Inbuilt modules math, random and platform
- the dir() and help() functions
- Creating and using modules
- the __pycache__ and the .pyc files
- The module search path
- Importing modules
- Namespaces
- Importing module objects
- The import wildcard
- Aliases
- Importing within a function
- Executable modules
- Reloading a module
- About packages
- Importing packaged modules
- Importing packaged module objects
- Package initialisation
- Subpackages
- Referencing objects in sibling packages
- The Standard Library
- Installing modules and packages using pip
- About regular expressions
- Regular expression special characters
- Raw strings
- About the re module
- re module functions incl. match, search, findall, full match, split, sub
Course Contents - DAY 4
Session 15: EXCEPTION HANDLING- About exceptions and exception handling
- Handling exceptions (try, except, else, finally)
- Exception types
- The exception object
- Raising exceptions
- Custom exception types
- Built-in exceptions hierarchy
- The open function
- Methods for seeking (seekable, seek)
- Methods for reading from a file (readable, read, readline, readlines)
- Iterating over a file
- Methods for writing to a file (writable, write, writelines)
- Introduction to context managers
- Text encoding schemes, codepoints, codespace
- ASCII and UNICODE (UTF schemes)
- UTF-8, binary and hexadecimal representations
- The ord() and chr() functions
- Binary files, bytes and bytearray
- I/O layered abstraction.
- About the os module
- os module functions incl. getcwd, listdir, mkdir, chdir, remove, rmdir etc.
- OSError numbers and the errno module
- The DB-API
- DP-API implementations
- Establishing a connection
- Creating a cursor
- Executing a query
- Fetching results
- Transactions
- Inserting, updating, and deleting records
Customer Outreach Award
We believe that it should be easy for you to find and compare training courses.
Our Customer Outreach Award is presented to trusted providers who are excellent at responding to enquiries, making your search quicker, more efficient and easier, too.
Reviews
Average rating 5
Great course, and very well delivered. Professional and experience trainer.
Much preferred Stuart's code-along delivery style, rather than the traditional powerpoint and talk...
Musie is one of the best tutors I have ever come across - so enthusiastic and knowledgeable - amazing .... I wish the pre-req for this course was a little clearer as I assumed P...
Continuing Studies
Further Learning
- Python Programming 2
- Apache Web Server
- PHP Developer
- Ruby Programming
- Introduction to MySQL
- Introduction to MariaDB
Request info
Why StayAhead. From a single person on a scheduled course to large scale training projects StayAhead Training have the expertise and experience to help. Established since 1992, StayAhead Training is recognised as one of the leading independent IT Training specialists...
The course was really well explained and taught. The instructor Musie explained each topic really well with good examples that helped me understand.