CrackingCodes.Ch05.PracticeQuestions package

Submodules

CrackingCodes.Ch05.PracticeQuestions.Question1 module

Chapter 5 Practice Question 1

Using caesarCipher.py, encrypt the following sentences with the given keys.

Note

Contains spoilers for Chapter 7 (functions)

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

CrackingCodes.Ch05.PracticeQuestions.Question2 module

Chapter 5 Practice Question 2

Using caesarCipher.py, decrypt the following ciphertexts with the given keys

Note

Contains spoilers for Chapter 7 (functions)

CrackingCodes.Ch05.PracticeQuestions.Question2.main()[source]

CrackingCodes.Ch05.PracticeQuestions.Question3 module

Chapter 5 Practice Question 3

Which Python instruction would import a module named watermelon.py?

Note

Contains spoilers for Chapter 7 (functions)

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

CrackingCodes.Ch05.PracticeQuestions.Question4 module

Chapter 5 Practice Question 4

What do the following pieces of code display on the screen?

Note

Contains spoilers for Chapter 7 (functions)

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

CrackingCodes.Ch05.PracticeQuestions.watermelon module

Watermelon.py

Demonstration for CrackingCodes.Ch05.PracticeQuestions.Question3

Note

Contains spoilers for Chapter 7 (functions)

CrackingCodes.Ch05.PracticeQuestions.watermelon.main()[source]
CrackingCodes.Ch05.PracticeQuestions.watermelon.nutrition() → None[source]

Watermelon nutrition info.

Contains nutrition facts of a serving of watermelon.

Returns:Prints a series of strings containing the nutrition facts of a serving of watermelon.

Module contents