[Tutor] searching for a value in an array

S A buc40@bemail.org
Thu, 5 Sep 2002 13:15:11 -0700


This is a multi-part message in MIME format...

--RyPi5XhfkmOmkCQj5HFxg5Rya
Content-Type: text/plain
Content-Transfer-Encoding: 8bit



> Re: [Tutor] searching for a value in an arrayCc: tutor@python.org
> "anthony polis" <anthonypolis@hotmail.com> Erik Price <erikprice@mac.com>Date: Thu, 5 Sep 2002 15:26:28 -0400
>
>
>To pick nits, Python doesn't have arrays -- it has List objects.

Umm...
I think this is not entirely true. A list is a mutable sequence type. Python has 
another mutable sequence type in the array module.

http://www.python.org/doc/current/ref/types.html

I'm not sure about this array module since I have not messed with it. However, 
the built-in type "lists" should do the trick for you.


Good Luck.
SA




"I can do everything on my Mac that I used to do on my PC, plus alot more ..."

-Me

------------------------------------------------------------
Free, BeOS-friendly email accounts: http://BeMail.org/
BeOS News and Community: http://www.BeGroovy.com/


---------------------------------------------------------------------
Express yourself with a super cool email address from BigMailBox.com.
Hundreds of choices. It's free!
http://www.bigmailbox.com
---------------------------------------------------------------------

--RyPi5XhfkmOmkCQj5HFxg5Rya
Content-Type: text/html
Content-Transfer-Encoding: 8bit

<html><head></head><body><pre>

> Re: [Tutor] searching for a value in an arrayCc: tutor@python.org
> "anthony polis" <anthonypolis@hotmail.com> Erik Price <erikprice@mac.com>Date: Thu, 5 Sep 2002 15:26:28 -0400
>
>
>To pick nits, Python doesn't have arrays -- it has List objects.

Umm...
I think this is not entirely true. A list is a mutable sequence type. Python has 
another mutable sequence type in the array module.

http://www.python.org/doc/current/ref/types.html

I'm not sure about this array module since I have not messed with it. However, 
the built-in type "lists" should do the trick for you.


Good Luck.
SA




"I can do everything on my Mac that I used to do on my PC, plus alot more ..."

-Me

------------------------------------------------------------
Free, BeOS-friendly email accounts: http://BeMail.org/
BeOS News and Community: http://www.BeGroovy.com/


---------------------------------------------------------------------
Express yourself with a super cool email address from BigMailBox.com.
Hundreds of choices. It's free!
http://www.bigmailbox.com
---------------------------------------------------------------------
</pre>
				
<IMG SRC = "http://adserv.internetfuel.com/cgi-bin/omnidirect.cgi?SID=54&PID=7&LID=2" WIDTH = 1 HEIGHT = 1 BORDER = 0>
<script language="JavaScript">
<!--
	window.open("http://images.bigmailbox.com/popup.html","popup","top=4000,left=4000,width=100,height=100");
//-->
</script>

				</body></html>
--RyPi5XhfkmOmkCQj5HFxg5Rya--