Cracking Codes with Python: An Introduction to Building and Breaking Ciphers

Cracking Codes with Python: An Introduction to Building and Breaking Ciphers — page 9
Windows Instructions On Windows download the Python installer which should have a filename ending with msi and double-click it Follow the instructions the installer displays on the screen to install Python as listed here 1 Select Install Now to begin the installation 2 When the installation is finished click Close macOS Instructions On macOS download the dmg file for your version of macOS from the web site and double-click it Follow the instructions the installer displays on the screen to install Python as listed here 1 When the DMG package opens in a new window double-click the Python mpkg file You may have to enter your computer’s administrator password 2 Click Continue through the Welcome section and click Agree to accept the license 3 Select HD Macintosh or the name of your hard drive and click Install Ubuntu Instructions If you’re running Ubuntu install Python from the Ubuntu Software Center by following these steps 1 Open the Ubuntu Software Center 2 Type Python in the search box in the top-right corner of the window 3 Select IDLE using Python 3 6 or whatever is the latest version 4 Click Install You may have to enter the administrator password to complete the installation downloading pyperclip py Almost every program in this book uses a custom module I wrote called pyperclip py This module provides functions that let your programs copy and paste text to the clipboard It doesn’t come with Python so you’ll need to download it from https www nostarch com crackingcodes This file must be in the same folder also called directory as the Python program files you write Otherwise you’ll see the following error message when you try to run your programs ImportError No module named pyperclip Now that you’ve downloaded and installed the Python interpreter and the pyperclip py module let’s look at where you’ll be writing your programs xxvi Introduction