Intro to
Computer
Science

Spring 2021
course
site
-->

May 3

This Thursday : I'm getting my 2nd vaccination on Wed, and so may be out of the loop the dafter after ... and so you may get the day off. I'll send out a note Wed night either way.

... start recording.

Questions about anything?

practice

Last class I showed you several code examples.

This time I think that the most useful thing we can do is practice. So I've picked a couple of exercises from the text that we'll work through, or at least start to work through.

I'll start us thinking about these and perhaps move into breakout rooms for some tasks.

Depending on time, we may also try to simulate the skunk dice game ... can we come up with a strategy for a computer player?


We first started the ATM problem, but haven't finished it yet. I've attached the atm.py and atm_info.txt files that we worked on.

We then started the skunk game; again didn't finish it. The code so far is attached.

Stay tuned for more on Thursday (if we meet).

https://cs.bennington.college /courses /spring2021 /introcs /notes /may3
last modified Mon May 3 2021 11:42 am

attachments [paper clip]

  last modified size
TXT atm.py Mon May 03 2021 11:04 am 2.4K
TXT atm_info.txt Mon May 03 2021 11:04 am 53B
TXT skunk.py Mon May 03 2021 11:41 am 2.0K