[Tutor] dictionary

ajstec ajstec@bol.com.br
Tue Jun 24 11:09:01 2003


This is a multi-part message in MIME format.

------=_NextPart_000_000F_01C33A4A.60BBD7E0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello all,

     I am trying to learn Python, and need of help, as I make to =
discover all the attributes in the use of dictionaries.

Eg : dict=3D{'name' : 'joao'}
       dict.has_key('name')=20

attribute in red.
         =20

Adilton,=20
Recife-Brazil

------=_NextPart_000_000F_01C33A4A.60BBD7E0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello all,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;I am trying to =
learn=20
Python, and need of help, as I make to discover all the attributes in =
the use of=20
dictionaries.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Eg : dict=3D{'name' : =
'joao'}</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;dict.<FONT=20
color=3D#ff0000>has_key</FONT>('name') </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>attribute in red.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Adilton, </FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2>Recife-Brazil</FONT></DIV></BODY></HTML>

------=_NextPart_000_000F_01C33A4A.60BBD7E0--