[Tutor] Question about BASIC and Python
Nathan Pinno
falcon3166 at hotmail.com
Tue Aug 2 07:39:41 CEST 2005
Thanks Bob and Liam. I was wondering myself.
----- Original Message -----
From: Bob Gailer
To: Nathan Pinno ; Tutor mailing list
Sent: Monday, August 01, 2005 11:09 PM
Subject: Re: [Tutor] Question about BASIC and Python
At 06:13 PM 8/1/2005, Nathan Pinno wrote:
Hi all,
I had a co-worker say to me at work that Python was related to or based upon BASIC. Is this true, and if not, how can I tell my friend why they are similar?
There are many versions of BASIC (Beginners All-Purpose Symbolic Instruction Code) (or something like that). What most have in common with Python (and a lot of other programming languages) is:
variables of various data types
statements
expressions with numeric, string, relational and boolean operations
sequential execution
control structures for conditionals and loops
subroutines
input/output
arrays
some BASIC versions also add
exception handling
an attempt at OO
Python differs in
the use of indentation to convey control structure
dictionaries
object-oriented to the max
builtin object methods
all items are objects
all objects may be dynamically altered
object properties may be added anytime
modules
big library of modules
and many more
Bob Gailer
phone 510 978 4454
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20050801/2b83b8cf/attachment.htm
More information about the Tutor
mailing list