CrackingCodes.Ch08.PracticeQuestions package¶
Submodules¶
CrackingCodes.Ch08.PracticeQuestions.Question1 module¶
Chapter 8 Practice Question 1
Using paper and pencil (cough), decrypt the following messages with the key 9.
Note
Contains spoilers for Chapter 9 (importing transpositionDecrypt)
CrackingCodes.Ch08.PracticeQuestions.Question2 module¶
Chapter 8 Practice Question 2
When you enter the following code into the interactive shell (cough), what does each line print?
CrackingCodes.Ch08.PracticeQuestions.Question3 module¶
Chapter 8 Practice Question 3
Draw the complete truth tables for the and, or, and not operators.
-
CrackingCodes.Ch08.PracticeQuestions.Question3.
andTruthTable
() → None[source]¶ And truth table.
Prints a truth table for the and operator.
Returns: None. Only prints out a table.
CrackingCodes.Ch08.PracticeQuestions.Question4 module¶
Chapter 8 Practice Question 4
Which of the following is correct?
if __name__ == ‘__main__’: if __main__ == ‘__name__’: if _name_ == ‘_main_’: if _main_ == ‘_name_’:
Note
answer variable needs to be decrypted with the specified key