Skip to content
KnowledgeCity

Python: Functions and Pre-Built Functions

How to understand and utilize functions in Python.
Preview the first lesson free — get full access to all 6 lessons.
Course: On-Demand
Beginner Provider Jeremy Kurtz  6 Lessons ·  39m  in English 

Course Description

A function is a subset of code meant for repeated use in one or many programs. This course explores different function types and how to use pre-built functions for a variety of purposes, including mathematical operations. You’ll also learn about user-defined functions, which are functions created by the programmer, to provide more customized results for things not in the general library of functions.

What You'll Learn

  • Identify the different types and purposes of functions in Python
  • Use pre-built functions for mathematical operations and string handling
  • Decide when to use pre-built functions versus creating your own
  • Create user-defined functions to produce more customized results
  • Apply functions as reusable subsets of code across one or many programs

Key Takeaways

  • A function is a subset of code meant for repeated use in one or many programs.
  • Pre-built functions can be used for a variety of purposes, including mathematical operations and working with strings.
  • User-defined functions are functions created by the programmer to provide more customized results for things not in the general library of functions.
  • The course covers when to use pre-built functions versus creating your own.

Frequently Asked Questions

What does this course cover?

It explores different function types and how to use pre-built functions for a variety of purposes, including mathematical operations, as well as user-defined functions created by the programmer for more customized results.

What is a function in this context?

A function is a subset of code meant for repeated use in one or many programs.

What are user-defined functions?

User-defined functions are functions created by the programmer to provide more customized results for things not in the general library of functions.

What lessons are included?

The course includes lessons on Functions, Pre-Built Functions (Strings), Pre-Built Functions (Math), and User-Defined Functions Parts 1 through 3.

What skills does this course focus on?

It focuses on Python programming skills including custom functions, function generators, function modules, stored functions, and user-defined functions.