- Häftad (Paperback / softback)
- Antal sidor
- 2nd Edition
- John Wiley & Sons Inc
- 228 x 184 x 19 mm
- Antal komponenter
- 535 g
Du kanske gillar
Beginning Programming with Python For Dummies
Fri frakt inom Sverige för privatpersoner.
Fler böcker av John Paul Mueller
Bloggat om Beginning Programming with Python For Dum...
John Paul Mueller is a freelance author and technical editor with more than 107 books and 600 articles to his credit. His subjects range from networking and artificial intelligence to database management and heads-down programming. He also consults and writes certification exams. Visit his website at http: //www.johnmuellerbooks.com/.
Introduction 1 About This Book 1 Foolish Assumptions 2 Icons Used in This Book 3 Beyond the Book 3 Where to Go from Here 4 Part 1: Getting Started with Python 5 Chapter 1: Talking to Your Computer 7 Understanding Why You Want to Talk to Your Computer 8 Knowing that an Application is a Form of Communication 9 Thinking about procedures you use daily 9 Writing procedures down 10 Seeing applications as being like any other procedure 11 Understanding that computers take things literally 11 Defining What an Application Is 11 Understanding that computers use a special language 12 Helping humans speak to the computer 12 Understanding Why Python Is So Cool 14 Unearthing the reasons for using Python 14 Deciding how you can personally benefit from Python 15 Discovering which organizations use Python 16 Finding useful Python applications 17 Comparing Python to other languages 18 Chapter 2: Getting Your Own Copy of Python 21 Downloading the Version You Need 21 Installing Python 24 Working with Windows 25 Working with the Mac 27 Working with Linux 28 Accessing Python on Your Machine 31 Using Windows 32 Using the Mac 34 Using Linux 35 Testing Your Installation 35 Chapter 3: Interacting with Python 37 Opening the Command Line 38 Starting Python 38 Using the command line to your advantage 39 Using Python environment variables to your advantage 41 Typing a Command 43 Telling the computer what to do 43 Telling the computer you're done 44 Seeing the result 44 Using Help 46 Getting into help mode 46 Asking for help 47 Leaving help mode 49 Obtaining help directly 50 Closing the Command Line 51 Chapter 4: Writing Your First Application 55 Understanding Why IDEs Are Important 56 Creating better code 56 Debugging functionality 56 Defining why notebooks are useful 57 Obtaining Your Copy of Anaconda 58 Obtaining Analytics Anaconda 58 Installing Anaconda on Linux 59 Installing Anaconda on MacOS 60 Installing Anaconda on Windows 61 Downloading the Datasets and Example Code 64 Using Jupyter Notebook 64 Defining the code repository 65 Creating the Application 71 Understanding cells 71 Adding documentation cells 74 Other cell content 75 Understanding the Use of Indentation 75 Adding Comments 77 Understanding comments 78 Using comments to leave yourself reminders 79 Using comments to keep code from executing 80 Closing Jupyter Notebook 80 Chapter 5: Working with Anaconda 83 Downloading Your Code 84 Working with Checkpoints 85 Defining the uses of checkpoints 85 Saving a checkpoint 86 Restoring a checkpoint 86 Manipulating Cells 86 Adding various cell types 87 Splitting and merging cells 87 Moving cells around 88 Running cells 88 Toggling outputs 90 Changing Jupyter Notebook's Appearance 90 Finding commands using the Command Palette 91 Working with line numbers 92 Using the Cell Toolbar features 93 Interacting with the Kernel 94 Obtaining Help 95 Using the Magic Functions 97 Viewing the Running Processes 99 Part 2: Talking the Talk 101 Chapter 6: Storing and Modifying Information 103 Storing Information 104 Seeing variables as storage boxes 104 Using the right box to store the data 104 Defining the Essential Python Data Types 105 Putting information into variables 105 Understanding the numeric types 106 Understanding Boolean values 110 Understanding strings 110 Working with Dates and Times 111 Chapter 7: Managing Information 113 Controlling How Python Views Data 114 Making comparisons 114 Understanding how computers make comparisons 115 Working with Operators 115 Defining the operators 116 Understanding operator precedence 122 Creating and Using Functions 123 Viewing functions as code packages 124 Understanding code reusability 124 Defining a function 125 Accessing functions 126 Sending information to functions 127 Returning informa