[Tutor] C to Python

D-Man dsh8290@rit.edu
Tue, 20 Feb 2001 22:53:18 -0500

On Tue, Feb 20, 2001 at 07:10:10PM -0600, Katharine Stoner wrote:
|    How is Python like C/C++?  Can it do everything C/C++ can do?

Python is similar to C/C++ in that is has if, while, for, functions,
classes, etc.  It is different in that indentation is significant
(improves readability and reduces the stupid typo bugs), memory
management is automatic, high-level concepts and structures are
built-in (like lists, dicts, and iterating over a list), and typing is

Python can do almost everything C/C++ can do.  It can't give you
segmentation faults (except in a C module, but that's C) and direct
access to arbitrary memory locations (applications don't need that
anyways, only kernels, device drivers, and the like).

Give python a try.  I am sure you will find it to be a much more
pleasant experience when solving higher-level problems and in
scripting/application level programming.  (Not that C/C++ is bad, it
is just better suited for low-level operations and systems