There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

Faresh ,

If by «loosely typed» you mean weakly typed, then that’s not true. Python is a dynamically and strongly typed language. Attempting to do an operation with incompatible types will result in a TypeError.


<span style="color:#323232;">>>> "3" + 9
</span><span style="color:#323232;">Traceback (most recent call last):
</span><span style="color:#323232;">  File "", line 1, in 
</span><span style="color:#323232;">TypeError: can only concatenate str (not "int") to str
</span>

You may be thinking of the following, but this only works because the __mul__ and __add__ methods of these objects have been written to accept the other types.


<span style="color:#323232;">>>> "A" * 4 + "H"
</span><span style="color:#323232;">'AAAAH'
</span>
  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • [email protected]
  • lifeLocal
  • goranko
  • All magazines