Lab 10 Dictionaries


Practice with Python dictionaries

Lab Setup

Pair Programming Tips

1. Recognize that pairing is hard

Pairing is an intense relationship, summoning all your powers of ingenuity, communication, humour, and code. If you find it hard, or even just tiring, it's because it is hard and tiring sometimes. It takes effort to be kind, patient and to help steer someone in the right direction (or to be willing to be steered). Respect your partner and be kind. Your job is to help each other learn.

2. Be mindful of your body language

Is your back to your partner? Is your computer screen angled away? Do you make eye contact? You want to create an atmosphere of inclusion so your pair feels respected and encouraged to comment.

An image showing good and bad body language for
pair programming from a top-down viewpoint. Good body language involves
two people sitting to the left and right of of a shared monitor. One has
the keyboard, which is pulled off to the side towards them, and the line
going through the middle of the monitor passes between the two people.
This image is labeled 'yes' with a smiley face and the monitor middle
line is green. The other image shows one person sitting directly in front
of the monitor, with the monitor middle line (in red) going through them.
The other person is forced to sit off to the side with an indirect view
of the screen. This image is labeled 'no' with an unhappy face.

3. Is it too quiet between you and your partner?

If there is a lot of silence, that is often a sign that someone feels left behind. Did you take over the keyboard and write a bunch of lines in silence? Yikes! Explain what you type to your partner. Or perhaps you are confused but feel uncomfortable speaking up. Try: "I don't understand this line, can you explain what it does?"

(These tips are from this blog post on pair programming)

Table of Contents

Big Questions