CrackingCodes.Ch07.PracticeQuestions package

Submodules

CrackingCodes.Ch07.PracticeQuestions.Question1 module

Chapter 7 Practice Question 1

Encrypt the following with the transposition cipher (with paper and pencil, cough).

Note

Contains spoilers for Chapter 9 (importing transpositionEncrypt)

CrackingCodes.Ch07.PracticeQuestions.Question1.main()[source]

CrackingCodes.Ch07.PracticeQuestions.Question2 module

Chapter 7 Practice Question 2

Is each spam a global or local variable?

CrackingCodes.Ch07.PracticeQuestions.Question2.foo() → None[source]

Prints spam.

Prints the contents of the spam variable.

Returns:Prints spam variable.
CrackingCodes.Ch07.PracticeQuestions.Question2.main()[source]

CrackingCodes.Ch07.PracticeQuestions.Question3 module

Chapter 7 Practice Question 3

What value does each of the following expressions evaluate to?

Note

aka “The power of lists”

CrackingCodes.Ch07.PracticeQuestions.Question3.main()[source]

CrackingCodes.Ch07.PracticeQuestions.Question4 module

Chapter 7 Practice Question 4

What value does each of the following expressions evaluate to?

Note

aka “Lists are OP”

CrackingCodes.Ch07.PracticeQuestions.Question4.main()[source]

CrackingCodes.Ch07.PracticeQuestions.Question5 module

Chapter 7 Practice Question 5

What are the four augmented assignment operators?

Note

Hint: Table 7-1 on pg 92

CrackingCodes.Ch07.PracticeQuestions.Question5.main()[source]

Module contents