Source code for CrackingCodesWithPython.Chapter08.PracticeQuestions.Question4

"""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
"""


[docs]def main(): # Answer with key = 9: answer = "Tr_=_h n _eia'' sm_:a:e_n _msi_awf ie_=n"
# If Question4.py is run (instead of imported as a module), call # the main() function: if __name__ == '__main__': main()