Viewing the Videos or Subscribing to the Podcast

Some of the entries have a picture, which you can click to access the video. Otherwise, to see the videos, use this icon to subscribe to or view the feed:


Or, subscribe in iTunes

Showing posts with label random. Show all posts
Showing posts with label random. Show all posts

Thursday, July 18, 2013

Introduction to Python Functions

A look at how to, and why you should, use functions in your Python programs.

Saturday, May 28, 2011

Kojo (Scala) Random Polygon Drawing

A demonstration of Kojo's repeat, forward, right, def, setPosition, and setAnimationDelay commands used to draw random polygons.

Saturday, January 8, 2011

A Simple Python Quiz Program

Learn about lists, tuples, and shuffling lists, while writing a simple question and answer program. Source code. Video.

Wednesday, June 23, 2010

Randomness in Python Lesson by Carter Sande

Carter Sande, young coauthor of the Python book Hello World! - Computer Programming for Kids and Other Beginners, visits Dave Briccetti’s Python programming class for grades 7–9 at Pleasant Hill, CA’s Diablo Valley College College for Kids program, and delivers a guest lecture on random numbers.

In another brief video, Dave Briccetti interviews Carter.

Sunday, July 19, 2009

Random Number Problems and Python Solutions

The solutions to these problems are shown:
  1. Produce one or more random integers in the range -5,5
  2. Randomly choose from a sequence like ('Sam', 'Sue', 'Bill')
  3. Randomly choose a number between 1 and 3. Ask the user for a guess. Tell the user if the guess is right.
  4. Display the result of rolling two six-sided dice
  5. Use randint or choice to add an element of randomness to a program of your own design

Random Numbers in Python: randint and choice

How to use randint and choice from the random module.