[ LiB ]Questions and AnswersChapter 4. Getting Specific with Python Games

Exercises

1:

Lists use parentheses and tuples use brackets for assignments. What do dictionaries use?

2:

List two escape sequences.

3:

Name any one list method and what it does.

4:

Write a simple example of a for loop.

5:

Define "widget."

6:

List one possible action that could slow down a program when used within an iteration, or loop.

7:

Write a program that takes as input two strings and two integers and then displays them.

[ LiB ]Questions and AnswersChapter 4. Getting Specific with Python Games