Course Code: 21361

55284 Introduction to Python

Class Dates:
1/1/0001
Length:
4 Days
Cost:
$2495.00
Class Time:
Technology:
Developer
Delivery:
Instructor-Led Training, Virtual Instructor-Led Training

Overview

  • Course Overview
  • In this Python training course, students learn to program in Python. The course is aimed at students new to the language who may or may not have experience with other programming languages. The course was written using Python 3.8, but is relevant for all students using Python 3.

    Audience Profile
    The course is aimed at students new to the language who may or may not have experience with other programming languages. The course was written using Python 3.8, but is relevant for all students using Python 3.

  • Audience
  • At Course Completion
    * Understand how Python works and Python's place in the world of programming languages, * Work with Python literals and comments, * Work with variables and Python data types, * Work with simple modules, *Output data with print(), * Collect user input, * Define and call functions, * Work with parameters and arguments, * Use variable scope, * Create and import modules, * Use math in Python, * Work with the math and random modules, *Work with string basics, * Work with special characters, * Work with multi-line strings, * Index and slice strings., * Work with common string operators and methods, * Format strings, * Use built-in string functions, * Work with lists, tuples, ranges, dictionaries, and sets, * Work with the *args and * Work with virtual environments,* Install packages with pip, * and more.

Prerequisites

  • There are no prerequisites but some programming experience is helpful.

Course Details

  • Module 1: Python Basics
  • Getting Familiar with the Terminal
  • Running Python, Running a Python File
  • Literals, Variables
  • Constants and Deleting Variables
  • Writing a Python Module, print() Function
  • Collecting User Input, Reading from and Writing to Files
  • Exercise: Working with Files
  • Lab 1: Click here to enter text.
  • Exercise: Hello, world!
  • Exercise: Exploring Types
  • Exercise: A Simple Python Script
  • Exercise: Hello, You!, Exercise: Working with Files
  • Module 2: Functions and Modules
  • Defining Functions, Variable Scope
  • Global Variables, Function Parameters
  • Returning Values, Importing Modules
  • Methods vs. Functions
  • Lab 1: Exercises in this lesson
  • Exercise: A Function with Parameters
  • Exercise: Parameters with Default Values
  • Module 3: Math
  • Python includes some built-in math functions and some additional built-in libraries that provide extended math (and related) functionality. In this lesson, we’ll cover the built-in functions
  • Arithmetic Operators, Assignment Operators
  • Precedence of Operations, Built-in Math Functions
  • The math Module, The random Module
  • Lab 1: Exercises in this lesson
  • Exercise: Floor and Modulus
  • Exercise: How Many Pizzas Do We Need?
  • Exercise: Dice Rolling
  • Module 4: Python Strings
  • Quotation Marks and Special Characters
  • String Indexing, Slicing Strings
  • Concatenation and Repetition, Combining Concatenation and Repetition
  • Python Strings are Immutable, Common String Methods
  • String Formatting
  • Formatted String Literals (f-strings) (introduced in Python 3.6)
  • Built-in String Functions
  • Lab 1: Exercises in this lesson
  • Exercise: Indexing Strings
  • Exercise: Slicing Strings
  • Exercise: Repetition, Exercise: Playing with Formatting
  • Exercise: Outputting Tab-delimited Text
  • Module 5: Iterables: Sequences, Dictionaries, and Sets
  • Definitions, Sequences, Lists
  • equences and Random
  • Tuples, Ranges, Converting Sequences to Lists
  • Indexing, Slicing, min(), max(), and sum()
  • Converting between Sequences and Strings
  • Unpacking Sequences
  • Dictionaries, The len() Function, Sets, args and **kwargs
  • Lab 1: Exercises in this lesson
  • Exercise: Remove and Return Random Element
  • Exercise: Simple Rock, Paper, Scissors Game
  • Exercise: Creating a Dictionary from User Input
  • Module 6: Virtual Environments
  • Packages with pip
  • Lab 1: Exercises in this lesson
  • Exercise: Creating, Activiting, Deactivating, and Deleting a Virtual Environment
  • Exercise: Working with a Virtual Environment
  • install packages with pip.
  • Module 7: Flow Control
  • Conditional Statements, Compound Conditions
  • The is and is not Operators
  • all() and any() and the Ternary Operator
  • In Between, Loops in Python
  • break and continue, Looping through Lines in a File
  • The else Clause in Loops
  • The enumerate() Function, Generators
  • List Comprehensions
  • Lab 1: Exercises in this lesson
  • Exercise: All True and Any True
  • Exercise: Word Guessing Game
  • Exercise: for...else
  • Module 8: Exception Handling
  • Exception Basics, Generic Exceptions
  • The else and finally Clauses, Using Exceptions for Flow Control
  • Raising Your Own Exceptions
  • Lab 1: Installing and Configuring Windows 7
  • Exercise: Raising Exceptions
  • Exercise: Running Sum
  • Module 9: Python Dates and Times
  • Understanding Time, The time Module
  • Time Structures, Times as Strings
  • Time and Formatted Strings
  • Pausing Execution with time.sleep()
  • The datetime Module, datetime.datetime Objects
  • Lab 1: Exercises in this lesson
  • Exercise: What Color Pants Should I Wear?
  • Exercise: Report on Departure Times
  • Module 10: File Processing
  • Opening Files, Writing to Files
  • The os Module, os.walk()
  • The os.path Module, A Better Way to Open Files
  • Lab 1: Exericises in this lesson, Exercise: Finding Text in a File
  • Exercise: Writing to Files, Exercise: List Creator
  • Exercise: Comparing Lists
  • Module 11: PEP8 and Pylint
  • PEP8
  • Pylint
  • Lab 1: Click here to enter text.