Skip navigation.

CS 135 Programming Logic

Urn World Tutorial

Chapter 3: Loops

In this chapter we consider the problem of moving all the balls in one urn into another urn.

  1. Move all the balls in U into V
  2. Python while loop
  3. Move all the red balls in U into V
  4. Problems