Search for tag: "integer"

Lesson 16.2 For-Loop Design

In this video we show how to use for-loops in function definitions. In particular, we show that we go from a specification to code that uses a for-loop.

From  Hannah Lee on October 19th, 2020 16 plays

Lesson 14.4 Try-Except and Testing

We have a new control structure, so it is time once again to talk about testing. In this video we revisit the concept of code coverage and show testing a try-except is very similar to testing a…

From  Hannah Lee on October 10th, 2020 13 plays

Zoom Oct. 1. Objects

In this session we use the Python visualizer to help us better understand objects, a new type of data. For many students this is the first big difficulty jump in this course.This class is going to…

From  Hannah Lee on October 2nd, 2020 5 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 6 plays

Lesson 1.7 Mixed Expressions

For the most part, operations are used to combine two expressions of the same type. Adding together two ints is different from adding together two strings. In this video we see what happens when we…

From  Hannah Lee on September 4th, 2020 5 plays

Lesson 1.2 Int Expressions

The most familiar type in Python is int, the set of integers. It supports all of the basic mathematical expressions that you expect, like addition, subtraction, multiplication, and division. However,…

From  Hannah Lee on September 4th, 2020 8 plays

CS2110-FA17-01 Session 01

2017-08-22 00:00:00+00

From  mjp337@cornell.edu on June 26th, 2018 807 plays

CAM Colloquium - Mike Todd: Computation, Multiplicity, and Comparative Statics of Cournot Equilibria in Integers

We give an efficient algorithm for computing a Cournot equilibrium when the producers are confined to integers, the inverse demand function is linear, and costs are quadratic. The method also…

From  E. Cornelius on May 15th, 2018 3 plays

CAM Colloquium, 2016-01-29 - David Bindel: Nonlinear Eigenvalue Problems: Theory and Applications

From  E. Cornelius on June 27th, 2017 10 plays