Search for tag: "return"

Zoom Sep. 15. User-Defined Functions

In this class we will review how functions are defined, and how we visualize their execution.We will spend more of the class talking about visualization than how to write function definitions in…

From  Hannah Lee on September 16th, 2020 3 plays

Lesson 6.5 String Processing

The focus of the first assignment will be to write functions that take a string as input and produce a string as output. We sometimes call this (informally) string processing. This can be a daunting…

From  Hannah Lee on September 16th, 2020 4 plays

Lesson 5.6 Functions & the Python Tutor

In the previous video, we showed how to visualize function calls on a piece of paper. But, as with all visualization, we do have the Python Tutor at our disposal. In this video we illustrate the…

From  Hannah Lee on September 11th, 2020 3 plays

Lesson 5.5 Function Visualization

Once again, visualization is an important skill in this couse. In this video we show what it is even more important for functions. In particular, we introduce the new topic of the call frame, which…

From  Hannah Lee on September 11th, 2020 3 plays

Lesson 5.4 Fruitful Functions

In this video we show how to define the definition of a fruitful function (a function that can be used as an expression). It requires a new type of command: the return statement.

From  Hannah Lee on September 11th, 2020 2 plays

Lesson 4.4 Modules vs Scripts

At this point you are wondering what is the difference between a module and script, since they both end in .py. This is an excellent question. But as this video shows, the answer may not be what you…

From  Hannah Lee on September 9th, 2020 3 plays

Lesson 3.4 Python Documentation

While this new video/lecture format is allowing us to show you things we could not cover in year’s past, there is a limit to how much we can show you. Sometimes you are just going to need to…

From  Hannah Lee on September 9th, 2020 4 plays

Lesson 3.2 String Functions

Strings are very powerful type that we will use in the first major assignment. In this video we introduce the three main string functions that you should be aware of.

From  Hannah Lee on September 9th, 2020 3 plays

Lesson 3.1 Built-In Functions

The easiest functions to use in Python are those that are built into it. They are listed on the Python Documentation page. In this video we examine some of these and show the syntax for how to use…

From  Hannah Lee on September 9th, 2020 3 plays

Lesson 1.1 Evaluation

Before we get started with Python we need to define some basic terminology. Those math-like formula that we type into Python are called expressions. Python then uses the process of evalation to turn…

From  Hannah Lee on September 4th, 2020 3 plays

Lesson 0.3 Python Scripts

Python scripts are files containing pre-written Python code. You can run a Python script even if you do not understand the code inside of it. In this video we show you how to do exactly that.

From  Hannah Lee on September 4th, 2020 4 plays

Web Accessibility for Content Contributors

From  Brandon Brylinsky on October 28th, 2019 8 plays