Showing posts with label idle. Show all posts
Showing posts with label idle. Show all posts

Sunday, July 12, 2009

Python interactive help mode

Python provides an interactive help mode inside the interactive Python interpreter.

This tutorial provides some basic on how to use the help mode.

Enter the help mode


To use it, start the Python interpreter (or, IDLE), and then type help() and press Enter to start the interactive help mode.




Quit the help mode


To exit the help mode, type quit and press Enter.


List of Python keywords


To get a list of available keywords in Python, type keywords and press Enter.

To get help on certain keyword just type the keyword and press enter.


List of available modules


To get a list of available modules in Python, type module and press Enter.

To get help on certain module just type the module name and press enter.


List of available topics


The topics command gives a list of topics regarding Python programming language.

To get a list of available topics, type topics and press Enter.

To get help on certain topic, just type the topic name and press enter.

Wednesday, April 22, 2009

How to install IDLE in Linux

IDLE is the default editor for Python. However, despite the fact that Python is installed by default in most Linux system, the user should install IDLE manually. These are the commands for installing IDLE.

Debian/Ubuntu

sudo apt-get install idle

Fedora/Red Hat

yum install python-tools