Chapter 3

Interacting with Python

IN THIS CHAPTER

check Accessing the command line

check Using commands to perform tasks

check Obtaining help about Python

check Ending a command-line session

Ultimately, any application you create interacts with the computer and the data it contains. The focus is on data because without data, there isn’t a good reason to have an application. Any application you use (even one as simple as Solitaire) manipulates data in some way. In fact, the acronym CRUD sums up what most applications do:

  • Create
  • Read
  • Update
  • Delete

If you remember CRUD, you’ll be able to summarize what most applications do with the data your computer contains (and some applications really are quite cruddy). However, before your application accesses the computer, you have to interact with a programming language that creates a list of tasks to perform in a language the computer understands. That’s the purpose of this chapter. You begin interacting with Python. Python takes the list of steps you want to perform on the computer’s data and changes those steps into bits the computer understands.

Opening ...

Get Beginning Programming with Python For Dummies, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.