Reply to comment

Python is strongly typed

All that example shows is the Python is dynamically typed.

The basic story is:
*Static/dynamic refers to the type of variables (and functions): in statically-typed languages, once a variable contains a string, it can never return an int.

*Weak/strong refers to the type of objects: in weakly-typed languages, "1"+1 is allowed (although Java, which is strongly typed, DOES give special allowance for automatic casting to string).

Submitted by Max Rabkin (not verified) on Wed, 21/02/2007 - 09:03.

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
1 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

Google ads

(You can disable these if you log in)