Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

University of Colorado Boulder

Introduction to Python Functions

University of Colorado Boulder via Coursera

Overview

How many times have you decided to learn a programming language but got stuck somewhere along the way, grew frustrated, and gave up? This specialization is designed for learners who have little or no programming experience but want to use Python as a tool to play with data. In the second course, Introduction to Python Functions, you are going to learn and use functions predefined in Python and Python packages, you also are able to define functions as well. You will create and use functions to make your programs reusable and adaptive. Are you ready? Let's go! Logo image courtesy of Mourizal Zativa. Available on Unsplash here: https://unsplash.com/photos/gNMVpAPe3PE

Syllabus

  • Hello, functions!
    • Welcome on board! This first module shows the reasons why we need functions and introduces basic function definitions. You are going to recall some functions we have learned before, and you are going to define some simple functions of your own! Are you ready? Let's go!
  • Functions with Parameters
    • Now you should be comfortable with simple functions. This module introduces you more about functions with parameters, which are the majority ones you are going to call when you do your data science projects. Are you ready? Let's go!
  • Functions with Return Values
    • For data science projects, not only we need to execute some functions, but also we expect some results from the execution so we can use the results for next step. This module introduces you the functions with return values. Are you ready? Let's go!
  • Functions in Functions
    • With the knowledge you have learned about simple functions, functions with parameters, and functions with return values, you should be able to learn nested functions. This module introduces you the general idea of nested functions, as well as two specific categories of them: hierarchical functions and recursive functions. Are you ready? Let's go!

Taught by

Di Wu

Reviews

4.8 rating at Coursera based on 38 ratings

Start your review of Introduction to Python Functions

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.