[Tutor] declarations

Cameron Stoner wolf_binary@hotmail.com
Sun, 7 Apr 2002 17:53:07 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_000D_01C1DE5D.12FD4EC0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all,

Can you declare variable types like in C++ in Python.
example:

int variableName =3D 0
float variableName =3D 0.0
char variableName =3D " "

Python must take care of these declarations for you, but I want to know =
if you can still make the declarations or not.

Thanks for any help on this,
Cameron Stoner

------=_NextPart_000_000D_01C1DE5D.12FD4EC0
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.2713.1100" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi all,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Can you declare variable types like in =
C++ in=20
Python.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>example:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>int variableName =3D 0</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>float variableName =3D 0.0</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>char variableName =3D " "</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Python must take care of these =
declarations for=20
you, but I want to know if you can still make the declarations or=20
not.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for any help on =
this,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Cameron =
Stoner</FONT></DIV></BODY></HTML>

------=_NextPart_000_000D_01C1DE5D.12FD4EC0--