Thread
:
Coding this function
View Single Post
Nov 26th, 2006, 12:38 PM
#
9
Dietrich
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power:
4
It might be "cheating", but there is the "len" function.
(
Toggle Plain Text
)
>>> len([7,8,9]) 3
>>> len([7,8,9]) 3
Homework? I can't believe that there are actually schools progressive enough to teach Python. I thought most of those institutions of higher learning were stuck with Java.
__________________
I looked it up on the Intergnats!
Dietrich
View Public Profile
Find More Posts by Dietrich