1. Home
  2. Training Library
  3. Python Functions, Modules, and Packages

Python Functions, Modules, and Packages

Developed with
Trivera

Contents

keyboard_tab
Introduction
1
Introduction
PREVIEW39s
Code Structure
Review

The course is part of this learning path

Introduction
Overview
Difficulty
Beginner
Duration
37m
Students
1776
Ratings
4.4/5
starstarstarstarstar-half
Description

This course provides you with a deep dive into how to refactor and structure your code into smaller more manageable building blocks using Functions, Modules, and Packages.

Learning Objectives

  • Understand how to write and define functions
  • Understand the four kinds of different function input parameters and how to use them
  • Review how modules are created and used
  • Learn how modules are loaded using the import statement
  • Examine how modules are discovered via module search locations
  • Review how modules can themselves be organized into packages
  • And finally, we understand how to use aliases for both module and package names

Prerequisites

  • A basic understanding of the Python programming language
  • A basic understanding of software development
  • A basic understanding of the software development life cycle

Intended Audience

  • Software developers interested in learning how to write Python code in a Pythonic way
  • Python junior level developers interested in advancing their Python skills 
  • Anyone with an interest in Python and how to use Python to write concise and elegant scripts for general purpose tasks
Transcript

- [Jeremy] Okay, welcome back. In this course, we're going to go through the concepts of functions, modules, and packages. We use these within our Python code to structure our code into smaller, more manageable, readable units of code. Okay, let's begin. The learning objectives for this course will be to review and define functions, learn about the four kinds of function parameters, how to create new modules, loading modules with the import statement, setting module search locations, organizing modules into packages, and finally, using aliases for module and package names.

About the Author
Avatar
Jeremy Cook
Content Lead Architect
Students
75476
Labs
49
Courses
110
Learning Paths
56

Jeremy is a Content Lead Architect and DevOps SME here at Cloud Academy where he specializes in developing DevOps technical training documentation.

He has a strong background in software engineering, and has been coding with various languages, frameworks, and systems for the past 25+ years. In recent times, Jeremy has been focused on DevOps, Cloud (AWS, GCP, Azure), Security, Kubernetes, and Machine Learning.

Jeremy holds professional certifications for AWS, GCP, and Kubernetes.

Covered Topics