Helping ordinary people create extraordinary websites!
HOME TUTORIALS SCRIPTS WEB HOSTING BLOG FORUM
Get Our Newsletter
Email:

Python 101

By Evelyn Mitchell
2005-04-27


Python and Tcl

Tcl on the surface looks a lot like Python. Both languages can be used to write elegant, simple code. Tcl is primarily a string processing language. The only datatypes in Tcl are strings and one-dimensional arrays of strings.

Python, in contrast, comes with a full range of data types including numbers (integers, long integers, floating point, octal, hex, and complex numbers), strings, lists, dictionaries (arrays indexed by keys, like hashes in Perl), and tuples (simple lists that can't be changed in place).

Tcl and Python share the same GUI toolkit, Tk. Python's interface to Tk is called Tkinter, and it is included with all recent versions of Python. You are not limited to using just Tk to build GUIs in Python, however. You can also use the Gimp Tool Kit (GTK) and Gnome extensions to GTK+.

Tutorial Pages:
» The Other Scripting Language that Starts with "P"
» Python and Perl
» Python and Tcl
» Python and Java
» Why is Python popular with Linux users?
» What is Python Bad For?
» Who uses Python?
» How to get Python
» Resources


First published by IBM DeveloperWorks


 | Bookmark
Related Tutorials:
» Python and Java - A Side by Side Comparison
» Learn Python in 10 Minutes
» Python 201 - (Slightly) Advanced Python Topics
» Python 101 - Introduction to Python
» Google Sitemaps
» Python vs. Perl