Like any other command line utilities, Python contains methods for help. To get started with the help utility, type the
Welcome to Python 3.4's help utility! If this is your first time using Python, you should definitely check out the tutorial on the Internet at http://docs.python.org/3.4/tutorial/. Enter the name of any module, keyword, or topic to get help on writing Python programs and using Python modules. To quit this help utility and return to the interpreter, just type "quit". To get a list of available modules, keywords, symbols, or topics, type "modules", "keywords", "symbols", or "topics". Each module also comes with a one-line summary of what it does; to list the modules whose name or summary contain a given string such as "spam", type "modules spam".
Within this interactive module, you can type commands such as
Let's type in
q to close this interactive module and instead work directly from the Python command line.
To get help on a specific function or method directly, use the
help() function, with a command inside the parentheses.
This will open up a help page that can be navigated by
less controls, as outlined below:
Before we get started tinkering with Python, it's important to know how to quickly and efficiently navigate the keyboard. Let's learn some of the most important keyboard navigation shortcuts.
Use the Ctrl+A to move to the beginning of the line, and Ctrl+E to move to the end.
Use Ctrl+B or the left arrow to move left one character, or Ctrl+F or the right arrow to move right.
Ctrl+D will delete the next character, while Ctrl+K deletes the rest of the line after the cursor.
You may also use Ctrl+Y to "Yank" the last deleted text. This is essential cutting.
To undo, use Ctrl+_.
To go back and forth in history, use Ctrl+r and Ctrl+s respectively.
Try these commands out on your computer and practice them to save time in the future.
Ever feel achy from sitting crunched up on your computer table? Try lying down with these optical glasses that allow you to work on your laptop while lying flat on your back. This is the perfect solution with those with limited mobility or those who wish to prevent neck cramps and back strains.$ Check price
Easy to understand and fun to read, Introducing Python is ideal for beginning programmers as well as those new to the language. Author Bill Lubanovic takes you from the basics to more involved and varied topics, mixing tutorials with cookbook-style code recipes to explain concepts in Python 3. End-of-chapter exercises help you practice what you learned.$ Check price