strong-typing

Is Python strongly typed?

Is Python strongly typed? Question: I’ve come across links that say Python is a strongly typed language. However, I thought in strongly typed languages you couldn’t do this: bob = 1 bob = “bob” I thought a strongly typed language didn’t accept type-changing at run-time. Maybe I’ve got a wrong (or too simplistic) definition of …

Total answers: 13

Is Python a weakly typed language as variables can switch types?

Is Python a weakly typed language as variables can switch types? Question: The way I understand it, the following is allowed in PHP because it’s a weakly-typed language. $var = ‘Hello’; $var = 5; I just installed a Windows version of Python 2.6 and I was expecting it NOT to let me change type just …

Total answers: 5