55284AC : Introduction to Python
Duration: 4 Days (32 Hours)
55284AC : Introduction to Python Course Overview:
The 55284AC : Introduction to Python training course is designed to provide participants with a comprehensive introduction to the Python programming language. Python is a versatile and popular programming language known for its simplicity, readability, and extensive libraries. This course serves as a stepping stone for individuals who want to begin their journey into the world of programming or expand their existing programming skills.
During the training, participants will learn the fundamentals of Python syntax, data types, control structures, functions, and modules. They will gain hands-on experience through coding examples, practical exercises, and assignments that reinforce their understanding of Python programming concepts. The course also covers file operations, error handling, and provides an introduction to object-oriented programming (OOP) concepts in Python.
Course Objectives:
- Understand the basics of Python programming language.
- Familiarize with Python syntax and data types.
- Learn how to use control structures such as loops and conditionals.
- Explore functions and modules in Python.
- Perform file operations and handle errors in Python.
- Get introduced to object-oriented programming (OOP) concepts in Python.
- Develop foundational skills to pursue more advanced Python courses or projects.
Intended Audience:
The Introduction to Python training is suitable for beginners and individuals with limited programming experience who want to learn Python from scratch. It is ideal for aspiring developers, software engineers, data analysts, and anyone interested in leveraging Python for web development, data analysis, automation, scripting, or other applications. No prior programming experience is required, making this course accessible to individuals from various backgrounds.
Module 1: Python Basics
Lessons
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
After completing this module, students will be able to:
work with Python, use variables, output data, collect user input, and write simple Python functions and modules.
Module 2: Functions and Modules
You have seen some of Python’s built-in functions. In this lesson, you will learn to write your own.
Lessons
Defining Functions
Variable Scope
Global Variables
Function Parameters
Returning Values
Returning Values
Importing Modules
Methods vs. Functions
Lab 1: Exercises in this lesson
Exercise: A Function with Parameters
Exercise: Parameters with Default Values
After completing this module, students will be able to:
define functions with or without parameters
understand variable scope and how to import modules.
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 and the math and random libraries.
Lessons
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
After completing this module, students will be able to:
do basic math in Python
use the math and random modules for extended math functionality.
Module 4: Python Strings
This module explains how to work with Python Strings.
Lessons
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
After completing this module, students will be able to:
- manipulate and format strings.
Module 5: Iterables: Sequences, Dictionaries, and Sets
Iterables are objects that can return their members one at a time. The iterables we will cover in this lesson are lists, tuples, ranges, dictionaries, and sets.
Lessons
Definitions
Sequences
Lists
Sequences 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
After completing this module, students will be able to:
understand lists, tuples, ranges, dictionaries, and sets.
understand the *args and **kwargs parameters.
Module 6: Virtual Environments
A virtual environment provides a self-contained directory tree with its own Python installation and additional packages necessary for the project(s) being done in that environment. As such, scripts can be run in a virtual environment that have dependencies that are different from those in other development projects that may be running in the standard environment or in separate virtual
environments..
Lessons
Packages with pip
Lab 1: Exercises in this lesson
Exercise: Creating, Activiting, Deactivating, and Deleting a Virtual Environment
Exercise: Working with a Virtual Environment
After completing this module, students will be able to:
create and use virtual environments
install packages with pip.
Module 7: Flow Control
This module explains how to change the flow by using conditional statements and loops.
Lessons
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
After completing this module, students will be able to:
write if-elif-else conditions and to loop through sequences.
understand the enumerate() function, generators, and list comprehensions.
Module 8: Exception Handling
This module explains how to anticipate and handle exceptions gracefully.
Lessons
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
After completing this module, students will be able to:
handle Python exceptions.
Module 9: Python Dates and Times
This module explains how to use Python’s built-in modules to work with dates and times.
Lessons
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
datetime.timedelta Objects
Lab 1: Exercises in this lesson
Exercise: What Color Pants Should I Wear?
Exercise: Report on Departure Times
After completing this module, students will be able to:
- work with the time and datetime modules
Module 10: File Processing
This module explains how to process files.
Lessons
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
After completing this module, students will be able to:
- work with files and directories on the operating system
Module 11: PEP8 and Pylint
This module explains how to use the official Python style guide.
Lessons
- PEP8
- Pylint
Lab 1: Click here to enter text.
- Click here to enter text.
After completing this module, students will be able to:
understand the PEP8 coding standards and how to use Pylint to analyze your code.
55284AC : Introduction to Python Course Prerequisites:
There are no prerequisites but some programming experience is helpful.
Q: What is the 55284AC: Introduction to Python training?
A: The 55284AC training is an introductory course designed to provide participants with a solid foundation in the Python programming language. It covers the fundamental concepts of Python programming, including syntax, data types, control structures, functions, modules, and file operations.
Q: Who should attend the Introduction to Python training?
A: The Introduction to Python training is ideal for individuals who are new to programming or have limited programming experience. It is suitable for aspiring developers, software engineers, data analysts, and anyone interested in learning Python for various applications, including web development, data analysis, automation, and scripting.
Q: Do I need any prior programming experience to attend this training?
A: No prior programming experience is required to attend the Introduction to Python training. This course is designed for beginners and covers the basics of Python programming from scratch. However, having a general understanding of computer systems and familiarity with the concept of programming will be beneficial.
Q: What topics are covered in the Introduction to Python training?
A: The training covers a wide range of topics, including Python syntax, variables and data types, control structures (such as loops and conditionals), functions and modules, file operations, error handling, and an introduction to object-oriented programming (OOP) concepts in Python.
Q: What is the format of the Introduction to Python training?
A: The Introduction to Python training is typically delivered through instructor-led classroom sessions or virtual classrooms. It combines lectures, hands-on exercises, coding examples, and practical assignments to reinforce learning and understanding of Python programming concepts.
Q: Can I apply the skills learned in this training to real-world projects?
A: Yes, the Introduction to Python training provides a solid foundation in Python programming, which can be applied to real-world projects. Python is widely used for web development, data analysis, automation, scripting, and more. The skills acquired during the training can be utilized in various applications and projects.
Q: Can this training prepare me for advanced Python courses?
A: Yes, the Introduction to Python training serves as a stepping stone for further learning and can prepare you for more advanced Python courses. It lays a strong foundation in Python programming, enabling you to grasp more complex concepts and dive deeper into advanced Python topics.
Q: Is Python a widely used programming language?
A: Yes, Python is one of the most popular and widely used programming languages in the world. It is highly versatile, with applications in web development, data analysis, artificial intelligence, machine learning, scientific computing, and more. Learning Python can open up numerous career opportunities in various industries.
Q: Can this training be customized for specific organizational needs?
A: This training can be customized to address specific organizational needs. We can discuss customization options based on your requirements.
Discover the perfect fit for your learning journey
Choose Learning Modality
Live Online
- Convenience
- Cost-effective
- Self-paced learning
- Scalability
Classroom
- Interaction and collaboration
- Networking opportunities
- Real-time feedback
- Personal attention
Onsite
- Familiar environment
- Confidentiality
- Team building
- Immediate application
Training Exclusives
This course comes with following benefits:
- Practice Labs.
- Get Trained by Microsoft Certified Trainers (MCT).
- Access to the recordings of your class sessions for 90 days.
- Digital courseware
- Experience 24*7 learner support.
Got more questions? We’re all ears and ready to assist!