On 17 Oct 2026 16:46:21 GMT, Stéphane CARPENTIER wrote:
> In this case python is a strongly typed language and in other cases
> it's not that important.
It’s *always* important. Consider why languages like PHP (ptui) and
JavaScript need that extra “===” comparison operator: it’s to disable
automatic type conversions (e.g. number ↔ string) that Python refuses
to do anyway.
> With some typed languages, you can't use a variable if you didn't
> declare it's type before. With python, you don't need to declare
> integers and strings but you need to declare dictionaries. Why? Don't
> know.
Who says you need to “declare dictionaries”?
l…@hypatia:~> python3
Python 3.14.7 (main, Sep 13 2026, 08:30:29) [GCC 16.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> a = "some text"
>>> print(a)
some text
>>> a = {"colour" : "green"}
>>> print(a)
{'colour': 'green'}
>>>